-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When ext_cmdline
is enabled, the event grid_cursor_goto
will not be sent during incsearch
#28800
Comments
I forgot that the current issue is that ext_cmdline is causing event inconsistencies, which should not be the expected behavior. |
Why not? This event was intentionally removed in |
But the cursor is actually changed:
def incsearch():
nonlocal start_incsearch
start_incsearch = True
print('cursor', win.cursor)
print("### Start incsearch ###")
nvim.input("gg/e")
print('cursor', win.cursor) |
Well yes the cursor position in the current window changes for incsearch but the cursor position on the grid does not and should not(implicitly). What problem does this cause? |
The potential issues may be related to the way UI events are handled. vscode-neovim currently only can adjust viewport based on cursor position rather than drawing. However, the example I provided is indeed a special case, and the logic can be adjusted to solve it. |
Problem
Steps to reproduce
pip install pynvim
NVIM v0.10.0
test.py
Expected behavior
Should the events be the same? Or is this expected behavior?
Neovim version (nvim -v)
NVIM v0.10.0
Vim (not Nvim) behaves the same?
Operating system/version
Windows 11
Terminal name/version
Windows Terminal
$TERM environment variable
Installation
Scoop
The text was updated successfully, but these errors were encountered: