0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

updated for version 7.3.472

Problem:    Crash when using ":redraw" in a BufEnter autocommand and
            switching to another tab. (驼峰)
Solution:   Move triggering the the autocommands to after correcting the
            option values. Also check the row value to be out of bounds.
            (Christian Brabandt, Sergey Khorev)
This commit is contained in:
Bram Moolenaar
2012-03-16 19:07:58 +01:00
parent 1c0b03e857
commit 5ad15df9ce
3 changed files with 16 additions and 7 deletions

View File

@@ -5371,6 +5371,12 @@ screen_line(row, coloff, endcol, clear_width
# define CHAR_CELLS 1
#endif
/* Check for illegal row and col, just in case. */
if (row >= Rows)
row = Rows - 1;
if (endcol > Columns)
endcol = Columns;
# ifdef FEAT_CLIPBOARD
clip_may_clear_selection(row, row);
# endif