hadronized / hop.nvim

Neovim motions on speed!
Other
2.47k stars 137 forks source link

Fix command line window error of #333 #353

Open jsr-p opened 1 year ago

jsr-p commented 1 year ago

Fixes #333 by checking whether we are inside the command line window before applying the nvim_set_current_win function. If we are inside the command line window we already know we have it focused (the command line window is focused automatically) so nvim_set_current_win is redundant. Thus, leaving out the nvim_set_current_win in the command line window case fixes the bug.