comparison src/evalwindow.c @ 26994:8d9506f3542e v8.2.4026

patch 8.2.4026: ml_get error with specific win_execute() command Commit: https://github.com/vim/vim/commit/e664a327014f4aa8baf8549a34a4caab2f3116a3 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 7 14:08:03 2022 +0000 patch 8.2.4026: ml_get error with specific win_execute() command Problem: ml_get error with specific win_execute() command. (Sean Dewar) Solution: Check cursor and Visual area are OK.
author Bram Moolenaar <Bram@vim.org>
date Fri, 07 Jan 2022 15:15:03 +0100
parents aa613a3084b9
children c9474ae175f4
comparison
equal deleted inserted replaced
26993:9a8859c832f0 26994:8d9506f3542e
741 mch_chdir((char *)cwd); 741 mch_chdir((char *)cwd);
742 742
743 // Update the status line if the cursor moved. 743 // Update the status line if the cursor moved.
744 if (win_valid(wp) && !EQUAL_POS(curpos, wp->w_cursor)) 744 if (win_valid(wp) && !EQUAL_POS(curpos, wp->w_cursor))
745 wp->w_redr_status = TRUE; 745 wp->w_redr_status = TRUE;
746
747 // In case the command moved the cursor or changed the Visual area,
748 // check it is valid.
749 check_cursor();
750 if (VIsual_active)
751 check_pos(curbuf, &VIsual);
746 } 752 }
747 } 753 }
748 754
749 /* 755 /*
750 * "win_findbuf()" function 756 * "win_findbuf()" function