To: vim_dev@googlegroups.com Subject: Patch 8.2.1164 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.1164 Problem: Text cleared by checking terminal properties not redrawn. (Alexey Radkov) Solution: Mark the screen characters as invalid. (closes #6422) Files: src/screen.c, src/proto/screen.pro, src/term.c *** ../vim-8.2.1163/src/screen.c 2020-06-24 20:33:59.569106308 +0200 --- src/screen.c 2020-07-08 23:04:18.672848177 +0200 *************** *** 2982,2987 **** --- 2982,2997 ---- } /* + * To be called when characters were sent to the terminal directly, outputting + * test on "screen_lnum". + */ + void + line_was_clobbered(int screen_lnum) + { + lineinvalid(LineOffset[screen_lnum], (int)Columns); + } + + /* * Copy part of a Screenline for vertically split window "wp". */ static void *** ../vim-8.2.1163/src/proto/screen.pro 2019-12-12 12:55:32.000000000 +0100 --- src/proto/screen.pro 2020-07-08 23:03:53.264925563 +0200 *************** *** 31,36 **** --- 31,37 ---- void screenalloc(int doclear); void free_screenlines(void); void screenclear(void); + void line_was_clobbered(int screen_lnum); int can_clear(char_u *p); void screen_start(void); void windgoto(int row, int col); *** ../vim-8.2.1163/src/term.c 2020-06-20 14:43:20.357653490 +0200 --- src/term.c 2020-07-08 23:02:48.325123752 +0200 *************** *** 3732,3737 **** --- 3732,3738 ---- screen_stop_highlight(); term_windgoto(1, 0); out_str((char_u *)" "); + line_was_clobbered(1); } if (xcc_status.tr_progress == STATUS_GET) *************** *** 3761,3766 **** --- 3762,3768 ---- screen_stop_highlight(); term_windgoto(2, 0); out_str((char_u *)" "); + line_was_clobbered(2); } if (did_send) *** ../vim-8.2.1163/src/version.c 2020-07-08 22:36:11.906706804 +0200 --- src/version.c 2020-07-08 23:03:47.832942126 +0200 *************** *** 756,757 **** --- 756,759 ---- { /* Add new patch number below this line */ + /**/ + 1164, /**/ -- I think that you'll agree that engineers are very effective in their social interactions. It's the "normal" people who are nuts. (Scott Adams - The Dilbert principle) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///