diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-11-05 21:21:33 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-11-05 21:21:33 +0100 |
commit | d0721058f494143186f66a60151c9634031a8c96 (patch) | |
tree | 3c47ba880d622c5571b370bbbe7923f44c91b485 /src/diff.c | |
parent | 389ab7122bec99c11ad4ce6d87cc6f38a21e4e40 (diff) |
patch 8.1.0513: no error for set diffopt+=algorithm:v8.1.0513
Problem: No error for set diffopt+=algorithm:.
Solution: Check for missing argument. (Hirohito Higashi, closes #3598)
Diffstat (limited to 'src/diff.c')
-rw-r--r-- | src/diff.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/diff.c b/src/diff.c index c001761340..0399e7967a 100644 --- a/src/diff.c +++ b/src/diff.c @@ -2266,6 +2266,8 @@ diffopt_changed(void) p += 9; diff_algorithm_new = XDF_HISTOGRAM_DIFF; } + else + return FAIL; } if (*p != ',' && *p != NUL) |