diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-12-24 22:43:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-24 22:43:27 +0100 |
commit | 8c8cc35926f265bf4f048b83fd130bef3932851e (patch) | |
tree | c9ef81f318eace216546c0a6eabd6df5c71847d4 /src/nvim/quickfix.c | |
parent | 88ae03bcdb8992fd91a3efdb61dbd7e2aa395eff (diff) | |
parent | 7add3ef996db3fd6ec8d03d2b8d879c58934b6e5 (diff) | |
download | rneovim-8c8cc35926f265bf4f048b83fd130bef3932851e.tar.gz rneovim-8c8cc35926f265bf4f048b83fd130bef3932851e.tar.bz2 rneovim-8c8cc35926f265bf4f048b83fd130bef3932851e.zip |
Merge pull request #13595 from teto/fix-filler
de curwinify some functions
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 9b8cc9ba31..aeac6e4905 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -3696,7 +3696,7 @@ void ex_copen(exarg_T *eap) curwin->w_cursor.lnum = lnum; curwin->w_cursor.col = 0; check_cursor(); - update_topline(); // scroll to show the line + update_topline(curwin); // scroll to show the line } // Move the cursor in the quickfix window to "lnum". @@ -3710,7 +3710,7 @@ static void qf_win_goto(win_T *win, linenr_T lnum) curwin->w_cursor.col = 0; curwin->w_cursor.coladd = 0; curwin->w_curswant = 0; - update_topline(); // scroll to show the line + update_topline(curwin); // scroll to show the line redraw_later(curwin, VALID); curwin->w_redr_status = true; // update ruler curwin = old_curwin; |