Mercurial > vim
diff src/terminal.c @ 22886:38324d4f1c94 v8.2.1990
patch 8.2.1990: cursor position wrong in terminal popup with finished job
Commit: https://github.com/vim/vim/commit/6a07644db30cb5f3d0c6dc5eb2c348b6289da553
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Nov 15 20:32:58 2020 +0100
patch 8.2.1990: cursor position wrong in terminal popup with finished job
Problem: Cursor position wrong in terminal popup with finished job.
Solution: Only add the top and left offset when not done already.
(closes #7298)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 15 Nov 2020 20:45:03 +0100 |
parents | b952e0a3af2f |
children | bc3a083b50cb |
line wrap: on
line diff
--- a/src/terminal.c +++ b/src/terminal.c @@ -2208,7 +2208,10 @@ position_cursor(win_T *wp, VTermPos *pos { wp->w_wrow += popup_top_extra(curwin); wp->w_wcol += popup_left_extra(curwin); - } + wp->w_flags |= WFLAG_WCOL_OFF_ADDED | WFLAG_WROW_OFF_ADDED; + } + else + wp->w_flags &= ~(WFLAG_WCOL_OFF_ADDED | WFLAG_WROW_OFF_ADDED); #endif wp->w_valid |= (VALID_WCOL|VALID_WROW); }