Below is an example of the problem.Code: Select allimport sublime_pluginclass NextInterestingThing(sublime_plugin.WindowCommand): rex = '(^[\ ]*(class|def)[\ ]+\w+[\ ]*\(.*$|(?![\w\W])|\Z|\n\n\w)' def run(self): view = self.window.active_view() # get current line curPoint = view.line(view.sel()[0].a).b found = view.find(self.rex, curPoint) placeToGo = view.line(found.b) if placeToGo: view.se