[vim/vim] CursorMoved autocmd is triggered after vim.options['eventignore'] = '' (Issue #19039)

5 views
Skip to first unread message

Yggdroot

unread,
Dec 28, 2025, 10:17:40 PM (16 hours ago) Dec 28
to vim/vim, Subscribed
Yggdroot created an issue (vim/vim#19039)

Steps to reproduce

There is a file named test.vim in current directory:

autocmd CursorMoved * echom "CursorMoved"

function! Test()
python3 << EOF
saved_eventignore = vim.options['eventignore']
vim.options['eventignore'] = 'all'
vim.current.buffer[:] = ['aaa', 'bbb']
vim.options['eventignore'] = saved_eventignore
EOF
endfunction
  1. vim --clean
  2. :so test.vim
  3. :call Test()

CursorMoved output is still generated.

Seems similar as #8641.

Expected behaviour

No output at all. This is the expected behavior of the code.

And Neovim doesn't have this BUG.

Version of Vim

vim9.1.1157

Environment

Linux, GNOME

Logs and stack traces


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19039@github.com>

Christian Brabandt

unread,
12:30 AM (13 hours ago) 12:30 AM
to vim/vim, Subscribed

Closed #19039 as duplicate.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/19039/issue_event/21773865533@github.com>

Christian Brabandt

unread,
12:30 AM (13 hours ago) 12:30 AM
to vim/vim, Subscribed
chrisbra left a comment (vim/vim#19039)

That is a duplicate of #8641


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19039/3695466479@github.com>

Reply all
Reply to author
Forward
0 new messages