Skip to content
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

:Lazy and E11: Invalid in command-line window #366

Open
oschrenk opened this issue Oct 28, 2023 · 0 comments
Open

:Lazy and E11: Invalid in command-line window #366

oschrenk opened this issue Oct 28, 2023 · 0 comments

Comments

@oschrenk
Copy link

I'm trying to understand an error I am getting when working with :Lazy (in nvim 0.9.4) and vim-tmux-navigator.

Whenever Lazy is open and I am trying to navigate out of the window and jump to a neighboring tmux pane, I get

E11: Invalid in command-line window; <CR> executes, CTRL-C quits: wincm
d k

It still works but it still shows an error.
I believe it comes from here:

function! s:VimNavigate(direction)
  try
    execute 'wincmd ' . a:direction
  catch
    echohl ErrorMsg | echo 'E11: Invalid in command-line window; <CR> executes, CTRL-C quits: wincmd k' | echohl None
  endtry
endfunction

When I comment out

    echohl ErrorMsg | echo 'E11: Invalid in command-line window; <CR> executes, CTRL-C quits: wincmd k' | echohl None

I can still navigate panes without issues.

This is similar to

#67

I also get an error when trying to quit the window using :q but I am not sure if that is "caused" by the same issue, as in that case I see

Error detected while processing WinLeave Autocommands for "*":
E21: Cannot make changes, 'modifiable' is off

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant