Sublime Forum

ST3: set_repeat_move_to_character_motion broken

#1

It seems the set_repeat_move_to_character_motion command has a problem under ST3:

>>> view.run_command('set_repeat_move_to_character_motion') TypeError: run_() takes 2 positional arguments but 3 were given

This breaks the ; and , shortcuts of the Vintage mode, which are mapped to this command.

Note: this is on the Linux 3008 build, running on Ubuntu 12.10 64bits

0 Likes

#2

FYI, I think I’ve found a fix for the issue:

--- a/vintage_motions.py	2013-02-06 10:59:16.425639223 +0100
+++ b/vintage_motions.py	2013-02-06 10:59:30.213707603 +0100
@@ -133,7 +133,7 @@
 # Helper class used to implement ';'' and ',', which repeat the last f, F, t
 # or T command (reversed in the case of ',')
 class SetRepeatMoveToCharacterMotion(sublime_plugin.TextCommand):
-    def run_(self, args):
+    def run_(self, edit_token, args):
         if args:
             return self.run(**args)
         else:

Hoping to see that integrated in a future release…

0 Likes

#3

I was just hunting this down myself, and lucky me I found this moments into my debug run. Cheers!

0 Likes

#4

Is it possible to patch my version of ST3 to use this or do I have to wait for a bug fix?

0 Likes