Sublime Forum

Moving to middle of the screen stopped working in ST 4213

#1

When the Vintage package is activated, pressing M in Command Mode moves the caret to the middle of the screen. This is no longer working in ST 4213. I also tested it in safe mode without success. Below is the error I get in the console:

reloading plugin Vintage.vintage
reloading plugin Vintage.vintage_commands
reloading plugin Vintage.vintage_motions
Traceback (most recent call last):
  File "C:\Program Files\Sublime Text\Lib\python314\sublime_plugin.py", line 1651, in run_
    return self.run(edit)
           ~~~~~~~~^^^^^^
  File "C:\Program Files\Sublime Text\Packages\Vintage.sublime-package\vintage_motions.py", line 206, in run
    middle_point = self.view.text_point(middle_row, 0)
  File "C:\Program Files\Sublime Text\Lib\python314\sublime.py", line 3238, in text_point
    return sublime_api.view_text_point(self.view_id, row, col, clamp_column)
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'float' object cannot be interpreted as an integer

I get the same an error if I add "disable_plugin_host_3.3": false, to preferences.

0 Likes