-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Check list
- I have read through the README (especially F.A.Q section)
- I have searched through the existing issues
Environment info
- OS
- Linux
- Mac OS X
- Windows
- Others:
Version info
VIM - Vi IMproved 9.1 (2024 Jan 02, compiled Aug 2 2025 22:16:28)
macOS version - arm64
Included patches: 1-754
Compiled by root@apple.com
Normal version without GUI. Features included (+) or not (-):
+acl +file_in_path +mouse_urxvt -tag_any_white
-arabic +find_in_path +mouse_xterm -tcl
+autocmd +float +multi_byte +termguicolors
+autochdir +folding +multi_lang +terminal
-autoservername -footer -mzscheme +terminfo
-balloon_eval +fork() +netbeans_intg +termresponse
-balloon_eval_term -gettext +num64 +textobjects
-browse -hangul_input +packages +textprop
++builtin_terms +iconv +path_extra +timers
+byte_offset +insert_expand -perl +title
+channel +ipv6 +persistent_undo -toolbar
+cindent +job +popupwin +user_commands
-clientserver +jumplist +postscript -vartabs
+clipboard -keymap +printer +vertsplit
+cmdline_compl +lambda -profile +vim9script
+cmdline_hist -langmap -python +viminfo
+cmdline_info +libcall -python3 +virtualedit
+comments +linebreak +quickfix +visual
+conceal +lispindent +reltime +visualextra
+cryptv +listcmds -rightleft +vreplace
+cscope +localmap -ruby +wildignore
+cursorbind -lua +scrollbind +wildmenu
+cursorshape +menu +signs +windows
+dialog_con +mksession +smartindent +writebackup
+diff +modify_fname -sodium -X11
+digraphs +mouse -sound -xattr
-dnd -mouseshape +spell -xfontset
-ebcdic +mouse_dec +startuptime -xim
-emacs_tags -mouse_gpm +statusline -xpm
+eval -mouse_jsbterm -sun_workshop -xsmp
+ex_extra +mouse_netterm +syntax -xterm_clipboard
+extra_search +mouse_sgr +tag_binary -xterm_save
-farsi -mouse_sysmouse -tag_old_static
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "/.vim/vimrc"/.config/vim/vimrc"
3rd user vimrc file: "
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X_UNIX -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -L/usr/local/lib -o vim -lm -lncurses -liconv -framework Cocoa
Question / Problem and steps to reproduce
When I hit q: to open the vim cmd window, I reliably got this string of errors:
Error detected while processing BufEnter Autocommands for "*"..function <SNR>30_handle_aut
ocmd[23]..<SNR>30_buffer_enter_handler[4]..<SNR>30_source_buffer_enter_handler[2]..<SNR>30
_refresh_minimap[17]..<SNR>30_render_minimap:
line 6:
E11: Invalid in command-line window; :q<CR> closes the window
Reproduce:
q:
Posting this issue in case anyone else runs into it.
I fixed this for myself in bertmuthalaly@9cbf84d
In case that linkrots in the future, here's the diff for posterity:
diff --git a/autoload/minimap/vim.vim b/autoload/minimap/vim.vim
index e9934c0..8245a77 100644
--- a/autoload/minimap/vim.vim
+++ b/autoload/minimap/vim.vim
@@ -241,6 +241,9 @@ function! s:open_window() abort
endfunction
function! s:handle_autocmd(cmd) abort
+ if getcmdwintype() != ''
+ return
+ endif
if g:minimap_opening == 0
if s:closed_on()
let mmwinnr = bufwinnr('-MINIMAP-')