You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There was the initial_selection method introduced in ST 4081 for the CommandInputHandler API, but it doesn't work for ListInputHandlers. For an easy fix see below.
Now after writing this, I see that there already is a similar issue report for TextInputHandler at #5972.
But I'll open this regardless, providing more information about the cause and with the hope that it will quickly be fixed with the solution below.
Steps to reproduce
Start ST in safe mode.
Create a plugin, either in the User package or in a separate package:
It seems the reason is that in the Python 3.8 environment in sublime_plugin.py it was only implemented in TextInputHandler.setup_, but not in ListInputHandler.setup_.
It's easy to fix it manually, and I can confirm that it works as expected then (ST4152):
For the Python 3.3 API environment the initial_selection method is even missing in the CommandInputHandler class, but if you add it works fine as well:
Description of the bug
There was the
initial_selection
method introduced in ST 4081 for the CommandInputHandler API, but it doesn't work for ListInputHandlers. For an easy fix see below.Now after writing this, I see that there already is a similar issue report for TextInputHandler at #5972.
But I'll open this regardless, providing more information about the cause and with the hope that it will quickly be fixed with the solution below.
Steps to reproduce
add the command to the command palette, and run it:
Expected behavior
Only first two letters are selected.
Actual behavior
The whole input text is selected.
Sublime Text build number
4152
Operating system & version
Windows 11
(Linux) Desktop environment and/or window manager
No response
Additional information
It seems the reason is that in the Python 3.8 environment in
sublime_plugin.py
it was only implemented inTextInputHandler.setup_
, but not inListInputHandler.setup_
.It's easy to fix it manually, and I can confirm that it works as expected then (ST4152):
For the Python 3.3 API environment the
initial_selection
method is even missing in the CommandInputHandler class, but if you add it works fine as well:OpenGL context information
No response
The text was updated successfully, but these errors were encountered: