khrizt / GotoLastEdit

Sublime plugin to go to last edit position
19 stars 3 forks source link

Add condition for not storing line as edited #3

Open khrizt opened 12 years ago

khrizt commented 12 years ago

if view.substr(sublime.Region(0,curr_pos))[-1] != '\n' and abs(POSNS[vid][0] - curr_line) > 2:

This condition should avoid registering new editing positions when they are within 2 lines of last edit