Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
22885:dc9330ed5a5c | 22886:38324d4f1c94 |
---|---|
2206 #ifdef FEAT_PROP_POPUP | 2206 #ifdef FEAT_PROP_POPUP |
2207 if (add_off && popup_is_popup(curwin)) | 2207 if (add_off && popup_is_popup(curwin)) |
2208 { | 2208 { |
2209 wp->w_wrow += popup_top_extra(curwin); | 2209 wp->w_wrow += popup_top_extra(curwin); |
2210 wp->w_wcol += popup_left_extra(curwin); | 2210 wp->w_wcol += popup_left_extra(curwin); |
2211 } | 2211 wp->w_flags |= WFLAG_WCOL_OFF_ADDED | WFLAG_WROW_OFF_ADDED; |
2212 } | |
2213 else | |
2214 wp->w_flags &= ~(WFLAG_WCOL_OFF_ADDED | WFLAG_WROW_OFF_ADDED); | |
2212 #endif | 2215 #endif |
2213 wp->w_valid |= (VALID_WCOL|VALID_WROW); | 2216 wp->w_valid |= (VALID_WCOL|VALID_WROW); |
2214 } | 2217 } |
2215 | 2218 |
2216 /* | 2219 /* |