changeset 11864:97eb443fee5d v8.0.0812

patch 8.0.0812: terminal window colors shift when 'number' is set commit https://github.com/vim/vim/commit/68c4bdd53cb54b6c0dccb2dcee446ef42ef3dedd Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 30 13:57:41 2017 +0200 patch 8.0.0812: terminal window colors shift when 'number' is set Problem: Terminal window colors shift when 'number' is set. (Nazri Ramliy) Solution: Use vcol instead of col.
author Christian Brabandt <cb@256bit.org>
date Sun, 30 Jul 2017 14:00:05 +0200
parents e1b0061c5101
children 6bdac11ae12a
files src/screen.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/screen.c
+++ b/src/screen.c
@@ -4541,7 +4541,7 @@ win_line(
 #ifdef FEAT_TERMINAL
 		if (get_term_attr)
 		{
-		    syntax_attr = term_get_attr(wp->w_buffer, lnum, col);
+		    syntax_attr = term_get_attr(wp->w_buffer, lnum, vcol);
 
 		    if (!attr_pri)
 			char_attr = syntax_attr;
--- a/src/version.c
+++ b/src/version.c
@@ -770,6 +770,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    812,
+/**/
     811,
 /**/
     810,