From e9c99aaa5b0c332ad1d18d191cee964b63065224 Mon Sep 17 00:00:00 2001 From: edyfox Date: Sun, 20 Jul 2008 04:56:23 +0000 Subject: [PATCH] Patch 7.2b.009 Problem: Reading past end of screen line. (Epicurus) Solution: Avoid going past the value of Columns. Files: src/screen.c git-svn-id: https://vim.svn.sourceforge.net/svnroot/vim/branches/vim7.2@1118 2a77ed30-b011-0410-a7ad-c7884a0aa172 --- src/screen.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/screen.c b/src/screen.c index 66d50a54..95a89144 100644 --- a/src/screen.c +++ b/src/screen.c @@ -7140,7 +7140,7 @@ screen_fill(start_row, end_row, start_col, end_col, c1, c2, attr) * terminal. */ if (mb_fix_col(start_col, row) != start_col) screen_puts_len((char_u *)" ", 1, row, start_col - 1, 0); - if (mb_fix_col(end_col, row) != end_col) + if (end_col < screen_Columns && mb_fix_col(end_col, row) != end_col) screen_puts_len((char_u *)" ", 1, row, end_col, 0); } #endif diff --git a/src/version.c b/src/version.c index 93b79578..d51c8777 100644 --- a/src/version.c +++ b/src/version.c @@ -677,6 +677,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 9, +/**/ 8, /**/ 7, -- 2.11.4.GIT