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
I've noticed that on certain branches, :G shows an error referencing modelines and then some word from the subject of a commit that will show in the status buffer. It seems to occur whenever the message starts with vim:, which is a prefix I use (akin to conventional commits) in my dotfiles repo when making a change to anything vim-related.
The error message is:
Error detected while processing modelines:
line 6:
E518: Unknown option: pin
Press ENTER or type command to continue
where "pin" is the word after the : in the subject.
Set up a git repo and branch that will show a commit with the subject "vim: pin which-key to v2.1.0" when viewed in the status buffer:
git init --initial-branch=main repro
cd repro
git commit --allow-empty -m "initial commit"
git switch -c feature main
git branch --set-upstream-to main
git commit --allow-empty -m "vim: pin which-key to v2.1.0"
Run nvim -u <path-to-minimal-config> from the reproduction repo
Run :G, the error should show
Press enter and see that the status buffer does still load (though I have issues with bindings afterwards)
Details
The error only seems to occur when the status buffer is not currently visible, and only when the message starts with vim:. For example, if I change the message in the above reproduction to omit the : (vim pin which-key to v2.1.0), the error no longer occurs. If I change it to just vim: a, the error still occurs. If I change it to nvim: a, the error does not occur again.
The status buffer does still load, but it seems that the various custom bindings I have for the status buffer are not applied.
Specs/setup
OS: MacOS Sonoma 14.6.1
Fugitive: 0444df6 (Use nvim vim.ui.open as a fallback, 2024-07-18)
Git: v2.46.0
Vim: Neovim v0.10.1
Also reproduced in NixOS 24.05 with Neovim v0.9.5 and git v2.44.1.
The text was updated successfully, but these errors were encountered:
Description
I've noticed that on certain branches,
:G
shows an error referencingmodelines
and then some word from the subject of a commit that will show in the status buffer. It seems to occur whenever the message starts withvim:
, which is a prefix I use (akin to conventional commits) in my dotfiles repo when making a change to anything vim-related.The error message is:
where "pin" is the word after the
:
in the subject.Minimal configuration
Steps to reproduce
Set up a git repo and branch that will show a commit with the subject "vim: pin which-key to v2.1.0" when viewed in the status buffer:
Run
nvim -u <path-to-minimal-config>
from the reproduction repoRun
:G
, the error should showPress enter and see that the status buffer does still load (though I have issues with bindings afterwards)
Details
The error only seems to occur when the status buffer is not currently visible, and only when the message starts with
vim:
. For example, if I change the message in the above reproduction to omit the:
(vim pin which-key to v2.1.0
), the error no longer occurs. If I change it to justvim: a
, the error still occurs. If I change it tonvim: a
, the error does not occur again.The status buffer does still load, but it seems that the various custom bindings I have for the status buffer are not applied.
Specs/setup
OS: MacOS Sonoma 14.6.1
Fugitive: 0444df6 (Use nvim vim.ui.open as a fallback, 2024-07-18)
Git: v2.46.0
Vim: Neovim v0.10.1
Also reproduced in NixOS 24.05 with Neovim v0.9.5 and git v2.44.1.
The text was updated successfully, but these errors were encountered: