cbumgard/GitCommitMsg

Broken in Sublime Text 4160, shows up as blank

Opened this issue · 2 comments

dsego commented

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 commented

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

dsego commented

sublimehq/sublime_text#6177 (comment)

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.