Mercurial > vim
comparison src/popupwin.c @ 19542:9e428147e4ee v8.2.0328
patch 8.2.0328: no redraw when leaving term-normal mode in popup terminal
Commit: https://github.com/vim/vim/commit/e52e0c89d1a6305beca3c01f89a4892dcb43bc71
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Feb 28 22:20:10 2020 +0100
patch 8.2.0328: no redraw when leaving term-normal mode in popup terminal
Problem: No redraw when leaving terminal-normal mode in a terminal popup
window.
Solution: Redraw the popup window. (closes #5708)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 28 Feb 2020 22:30:09 +0100 |
parents | 9f07a6c172f2 |
children | 167181848770 |
comparison
equal
deleted
inserted
replaced
19541:80dd4d7df929 | 19542:9e428147e4ee |
---|---|
3503 wp->w_cursor.lnum = wp->w_botline - 1; | 3503 wp->w_cursor.lnum = wp->w_botline - 1; |
3504 } | 3504 } |
3505 | 3505 |
3506 wp->w_winrow -= top_off; | 3506 wp->w_winrow -= top_off; |
3507 wp->w_wincol -= left_extra; | 3507 wp->w_wincol -= left_extra; |
3508 // cursor position matters in terminal | 3508 // cursor position matters in terminal in job mode |
3509 wp->w_wrow += top_off; | 3509 if (wp != curwin || !term_in_normal_mode()) |
3510 wp->w_wcol += left_extra; | 3510 { |
3511 wp->w_wrow += top_off; | |
3512 wp->w_wcol += left_extra; | |
3513 } | |
3511 | 3514 |
3512 total_width = popup_width(wp); | 3515 total_width = popup_width(wp); |
3513 total_height = popup_height(wp); | 3516 total_height = popup_height(wp); |
3514 popup_attr = get_wcr_attr(wp); | 3517 popup_attr = get_wcr_attr(wp); |
3515 | 3518 |