From 21afabb9e8cf335fb60c027bbb064de07d1bf586 Mon Sep 17 00:00:00 2001 From: Jurica Bradaric Date: Thu, 14 Jan 2016 10:58:12 +0100 Subject: vim-patch:7.4.729 Problem: Occasional crash with 'list' set. Solution: Fix off-by-one error. (Christian Brabandt) --- src/nvim/screen.c | 2 +- src/nvim/version.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 1ae2822a93..700612900a 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -3469,7 +3469,7 @@ win_line ( && !(noinvcur && lnum == wp->w_cursor.lnum && (colnr_T)vcol == wp->w_virtcol))) - && lcs_eol_one >= 0) { + && lcs_eol_one > 0) { /* Display a '$' after the line or highlight an extra * character if the line break is included. */ /* For a diff line the highlighting continues after the diff --git a/src/nvim/version.c b/src/nvim/version.c index 8c9faac0c3..e221001e35 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -395,7 +395,7 @@ static int included_patches[] = { // 732, // 731 NA // 730 NA - // 729, + 729, // 728 NA // 727 NA // 726 NA -- cgit From 1c91dc8a5ee83173474b31b8a0073a0368944914 Mon Sep 17 00:00:00 2001 From: Jurica Bradaric Date: Fri, 15 Jan 2016 09:04:46 +0100 Subject: screen: Fix linting errors --- src/nvim/screen.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 700612900a..ed02c28272 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -3470,10 +3470,10 @@ win_line ( && lnum == wp->w_cursor.lnum && (colnr_T)vcol == wp->w_virtcol))) && lcs_eol_one > 0) { - /* Display a '$' after the line or highlight an extra - * character if the line break is included. */ - /* For a diff line the highlighting continues after the - * "$". */ + // Display a '$' after the line or highlight an extra + // character if the line break is included. + // For a diff line the highlighting continues after the + // "$". if (diff_hlf == (hlf_T)0 && line_attr == 0) { /* In virtualedit, visual selections may extend * beyond end of line. */ -- cgit From a118abca77a620dc848991380470576300f27680 Mon Sep 17 00:00:00 2001 From: Jurica Bradaric Date: Tue, 19 Jan 2016 08:47:49 +0100 Subject: Add eol to listchars for mouse specification tests This is consistent with VIM behavior. When showing a visual selection, VIM only extends it past the last character if eol is in listchars (even if nolist is set). --- test/functional/ui/mouse_spec.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/test/functional/ui/mouse_spec.lua b/test/functional/ui/mouse_spec.lua index 30f37a7463..b3992c4a89 100644 --- a/test/functional/ui/mouse_spec.lua +++ b/test/functional/ui/mouse_spec.lua @@ -14,6 +14,7 @@ describe('Mouse input', function() before_each(function() clear() nvim('set_option', 'mouse', 'a') + nvim('set_option', 'listchars', 'eol:$') -- set mouset to very high value to ensure that even in valgrind/travis, -- nvim will still pick multiple clicks nvim('set_option', 'mouset', 5000) -- cgit