diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-08-06 19:16:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-06 19:16:42 +0200 |
commit | 1593ee7cf21f77168531c959fa9e73933b502d2e (patch) | |
tree | 2c2991996429def33fc192009cc408f809c6e687 /src/nvim/eval.c | |
parent | 3aca372ac88b4864c2da00780c01f207bdc58435 (diff) | |
parent | 41dbb69a85302e9af5c8b76e0d8217ad7d197f8a (diff) | |
download | rneovim-1593ee7cf21f77168531c959fa9e73933b502d2e.tar.gz rneovim-1593ee7cf21f77168531c959fa9e73933b502d2e.tar.bz2 rneovim-1593ee7cf21f77168531c959fa9e73933b502d2e.zip |
Merge #8820 from janlazo/vim-8.0.0671
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 15b5c3eef3..3abc39e7bf 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -9493,6 +9493,9 @@ static void f_getchar(typval_T *argvars, typval_T *rettv, FunPtr fptr) /* Find the window at the mouse coordinates and compute the * text position. */ win = mouse_find_win(&row, &col); + if (win == NULL) { + return; + } (void)mouse_comp_pos(win, &row, &col, &lnum); for (wp = firstwin; wp != win; wp = wp->w_next) ++winnr; |