Sublime Forum

clone_file crashes Sublime Text 3 in EventListener handler

#1

The following mini-plugin will crash ST3 reliably. (Build 3054, Mac OS X 10.8.5)

[code]import sublime, sublime_plugin

class Splittr(sublime_plugin.EventListener):
def on_modified(self, view):
view.window().run_command(‘clone_file’)
[/code]

I’d like to get it to work because I’d like to be able to clone the view in certain circumstances, in response to events or window contents.

0 Likes