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.
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) sonvim_set_current_win
is redundant. Thus, leaving out thenvim_set_current_win
in the command line window case fixes the bug.