vim-patch:8.1.0513: no error for set diffopt+=algorithm:

Problem:    No error for set diffopt+=algorithm:.
Solution:   Check for missing argument. (Hirohito Higashi, closes #3598)

d0721058f4
This commit is contained in:
Anatolii Sakhnik 2018-12-09 20:17:04 +02:00
parent 89eba72792
commit f273e43cb8

View File

@ -2165,6 +2165,8 @@ int diffopt_changed(void)
} else if (STRNCMP(p, "histogram", 9) == 0) {
p += 9;
diff_algorithm_new = XDF_HISTOGRAM_DIFF;
} else {
return FAIL;
}
}