0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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)
This commit is contained in:
Bram Moolenaar
2019-02-19 23:00:50 +01:00
parent 66ae3d199f
commit b9ddda6c2d
6 changed files with 74 additions and 1 deletions

View File

@@ -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;