comparison src/diff.c @ 15004:9c2352253376 v8.1.0513

patch 8.1.0513: no error for set diffopt+=algorithm: commit https://github.com/vim/vim/commit/d0721058f494143186f66a60151c9634031a8c96 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 5 21:21:33 2018 +0100 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 https://github.com/vim/vim/issues/3598)
author Bram Moolenaar <Bram@vim.org>
date Mon, 05 Nov 2018 21:30:06 +0100
parents d56f14540dda
children 9339601e7a31
comparison
equal deleted inserted replaced
15003:bd0d66403ac4 15004:9c2352253376
2264 else if (STRNCMP(p, "histogram", 9) == 0) 2264 else if (STRNCMP(p, "histogram", 9) == 0)
2265 { 2265 {
2266 p += 9; 2266 p += 9;
2267 diff_algorithm_new = XDF_HISTOGRAM_DIFF; 2267 diff_algorithm_new = XDF_HISTOGRAM_DIFF;
2268 } 2268 }
2269 else
2270 return FAIL;
2269 } 2271 }
2270 2272
2271 if (*p != ',' && *p != NUL) 2273 if (*p != ',' && *p != NUL)
2272 return FAIL; 2274 return FAIL;
2273 if (*p == ',') 2275 if (*p == ',')