Describe the bug
Cursor has been moved before executed set ei=, but autocommand CursorMoved still been executed.
To Reproduce
Detailed steps to reproduce the behavior:
vim --clean (or gvim --clean, etc.):help.:py3 import time.:autocmd CursorMoved * echom 'autocmd: ei = ' . &ei . ', line = ' line('.') . ',time = ' . py3eval('str(time.time())').:py3 << EOF
import vim
def Fun():
vim.command('set ei=all')
vim.command('100') # move to line 100
vim.command('200') # move to line 200
vim.command(f'echom "set ei: ei = " . &ei . ", line = " . line(".") . ", time = " . "{time.time()}"')
vim.command('set ei=')
EOF
:py3 Fun().:messages, and you can find CursorMoved has been executed after set ei=.Environment (please complete the following information):
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.![]()
Neovim does not have this bug.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()