GitCommitMsg icon indicating copy to clipboard operation
GitCommitMsg copied to clipboard

Broken in Sublime Text 4160, shows up as blank

Open dsego opened this issue 2 years ago • 2 comments

No error message in the console either, a new tab is opened but it remains empty. Not sure actually which version broke this package, but it's one of the newer ones, since this worked up until recently.

Mac OS Sonoma 14 Sublime Text 4160

dsego avatar Oct 25 '23 10:10 dsego

Some debugging tells me that chars = new_file.insert(edit, 0, result) returns 0 inserted chars.

dsego avatar Oct 26 '23 11:10 dsego

https://github.com/sublimehq/sublime_text/issues/6177#issuecomment-1781019459

Seems like the plugin was misusing an API mistake that has been fixed recently.

https://www.sublimetext.com/docs/api_reference.html#sublime.Edit

Using an invalid Edit object, or an Edit object from a different View, will cause the functions that require them to fail.

dsego avatar Oct 26 '23 12:10 dsego