Skip to content

Commit

Permalink
Merge pull request #80 from jimklo/master
Browse files Browse the repository at this point in the history
Fix for Issue #78
  • Loading branch information
mgaitan committed Mar 24, 2015
2 parents 54bd601 + 8b41b2c commit e76e51e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions footnotes.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def get_footnote_definition_markers(view):

def get_footnote_identifiers(view):
ids = get_footnote_references(view).keys()
ids.sort()
list(ids).sort()
return ids


Expand Down Expand Up @@ -106,7 +106,6 @@ def is_enabled(self):

class InsertFootnoteCommand(sublime_plugin.TextCommand):
def run(self, edit):
edit = self.view.begin_edit()
startloc = self.view.sel()[-1].end()
markernum = get_next_footnote_marker(self.view)
if bool(self.view.size()):
Expand All @@ -117,7 +116,6 @@ def run(self, edit):
self.view.insert(edit, self.view.size(), '\n.. [%s] ' % markernum)
self.view.sel().clear()
self.view.sel().add(sublime.Region(self.view.size()))
self.view.end_edit(edit)
self.view.show(self.view.size())

def is_enabled(self):
Expand Down

0 comments on commit e76e51e

Please sign in to comment.