mgaitan / sublime-rst-completion

Restructured Text snippets and code completion hotkeys for Sublime Text 2 and 3
BSD 3-Clause "New" or "Revised" License
251 stars 52 forks source link

Footnote Feature fails on Sublime Text 3 #78

Open shaaati opened 9 years ago

shaaati commented 9 years ago

On Sublime Text 3, the footnote shortcut fails and prints the following to the console:

Traceback (most recent call last):
  File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 549, in run_
    return self.run(edit)
  File "footnotes in /Users/phil/Library/Application Support/Sublime Text 3/Installed Packages/Restructured Text (RST) Snippets.sublime-package", line 109, in run
TypeError: begin_edit() missing 2 required positional arguments: 'edit_token' and 'cmd'

As far as I found out, Sublime Text 3 has changed the way begin_edit() is used.

jimklo commented 9 years ago

Found this out too, and just updated to ST3. Here's a PR to fix. Enjoy!