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)
diff --git a/src/drawline.c b/src/drawline.c
index 6b9cbc6..fcca38a 100644
--- a/src/drawline.c
+++ b/src/drawline.c
@@ -2455,6 +2455,7 @@
wp->w_wrow = row;
did_wcol = TRUE;
curwin->w_valid |= VALID_WCOL|VALID_WROW|VALID_VIRTCOL;
+ curwin->w_flags &= ~(WFLAG_WCOL_OFF_ADDED | WFLAG_WROW_OFF_ADDED);
}
#endif