-
-
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
autocmd BufRead * autocmd FileType <buffer> ++once
doesn't work
#21920
Comments
I'm not sure if this is just a documentation issue. The |
This works if you run it before |
Ah, it needs to be
|
PR welcome! (We have already diverged from upstream for this snippet.) |
To clarify, the fix should be to run filetype.lua as the last |
How is that possible without hardcoding that in C? |
It might not be possible without C changes. Otherwise, we should close this as "won't fix". |
No, we also could (and should) simply update the snippet in the docs -- that's the PR I had in mind. |
Describe the bug
The autocmd described in
:help restore-cursor
doesn't work.Steps to reproduce
A simple reproducer would be:
Expected behavior
It should print "wurst" once.
Neovim version (nvim -v)
0.8.2
Vim (not Nvim) behaves the same?
yes
Operating system/version
Fedora 37
Terminal name/version
konsole
$TERM environment variable
tmux-256color
Installation
system package manager
The text was updated successfully, but these errors were encountered: