Mercurial > vim
diff src/popupwin.c @ 17926:ad7a4bd65f20 v8.1.1959
patch 8.1.1959: when using "firstline" in popup window text may jump
Commit: https://github.com/vim/vim/commit/a112f2d0035b0800b4a70dbb6f0e5f85e8ec84e5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 1 17:38:09 2019 +0200
patch 8.1.1959: when using "firstline" in popup window text may jump
Problem: When using "firstline" in popup window text may jump when
redrawing it. (Nick Jensen)
Solution: Set 'scrolloff' to zero in a popup window. (closes #4882)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 01 Sep 2019 17:45:03 +0200 |
parents | fb773f73a4be |
children | 0bf8cb0258be |
line wrap: on
line diff
--- a/src/popupwin.c +++ b/src/popupwin.c @@ -1687,11 +1687,12 @@ popup_create(typval_T *argvars, typval_T buf->b_p_swf = FALSE; // no swap file buf->b_p_bl = FALSE; // unlisted buffer buf->b_locked = TRUE; - wp->w_p_wrap = TRUE; // 'wrap' is default on // Avoid that 'buftype' is reset when this buffer is entered. buf->b_p_initialized = TRUE; } + wp->w_p_wrap = TRUE; // 'wrap' is default on + wp->w_p_so = 0; // 'scrolloff' zero if (tp != NULL) {