Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
17925:f95465ddd841 | 17926:ad7a4bd65f20 |
---|---|
1685 (char_u *)"wipe", OPT_FREE|OPT_LOCAL, 0); | 1685 (char_u *)"wipe", OPT_FREE|OPT_LOCAL, 0); |
1686 buf->b_p_ul = -1; // no undo | 1686 buf->b_p_ul = -1; // no undo |
1687 buf->b_p_swf = FALSE; // no swap file | 1687 buf->b_p_swf = FALSE; // no swap file |
1688 buf->b_p_bl = FALSE; // unlisted buffer | 1688 buf->b_p_bl = FALSE; // unlisted buffer |
1689 buf->b_locked = TRUE; | 1689 buf->b_locked = TRUE; |
1690 wp->w_p_wrap = TRUE; // 'wrap' is default on | |
1691 | 1690 |
1692 // Avoid that 'buftype' is reset when this buffer is entered. | 1691 // Avoid that 'buftype' is reset when this buffer is entered. |
1693 buf->b_p_initialized = TRUE; | 1692 buf->b_p_initialized = TRUE; |
1694 } | 1693 } |
1694 wp->w_p_wrap = TRUE; // 'wrap' is default on | |
1695 wp->w_p_so = 0; // 'scrolloff' zero | |
1695 | 1696 |
1696 if (tp != NULL) | 1697 if (tp != NULL) |
1697 { | 1698 { |
1698 // popup on specified tab page | 1699 // popup on specified tab page |
1699 wp->w_next = tp->tp_first_popupwin; | 1700 wp->w_next = tp->tp_first_popupwin; |