From b9ddda6c2d98d99c09d58145c1b5b4042a8fd92c Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 19 Feb 2019 23:00:50 +0100 Subject: patch 8.1.0956: using context:0 in 'diffopt' does not work well Problem: Using context:0 in 'diffopt' does not work well. Solution: Make zero context do the same as one line context. (closes #4005) --- src/diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/diff.c') diff --git a/src/diff.c b/src/diff.c index 9220c7214..336157c6d 100644 --- a/src/diff.c +++ b/src/diff.c @@ -2277,7 +2277,7 @@ diffopt_changed(void) tp->tp_diff_invalid = TRUE; diff_flags = diff_flags_new; - diff_context = diff_context_new; + diff_context = diff_context_new == 0 ? 1 : diff_context_new; diff_foldcolumn = diff_foldcolumn_new; diff_algorithm = diff_algorithm_new; -- cgit v1.2.1