diff options
author | KillTheMule <KillTheMule@users.noreply.github.com> | 2016-04-12 21:24:08 +0200 |
---|---|---|
committer | KillTheMule <KillTheMule@users.noreply.github.com> | 2016-04-15 20:17:07 +0200 |
commit | 824a6877ea52fad5e29e14129708293840d663a9 (patch) | |
tree | 8cf12a8b24baab2838f1e1241d607b120bfd7d7e | |
parent | 4eb58273cde14f360c41ad98461b423a87ba3fd1 (diff) | |
download | rneovim-824a6877ea52fad5e29e14129708293840d663a9.tar.gz rneovim-824a6877ea52fad5e29e14129708293840d663a9.tar.bz2 rneovim-824a6877ea52fad5e29e14129708293840d663a9.zip |
vim-patch:7.4.1282
Problem: Crash when evaluating the pattern of ":catch" causes an error.
(Dominique Pelle)
Solution: Block error messages at this point.
https://github.com/vim/vim/commit/768ce2435ae956041579ef2d26e3e9d3a2444e1e
Applied manually. Could not reproduce the crash both using vim and nvim,
therefore could not device a test.
Should be merged anyways, since it's in vim?
-rw-r--r-- | src/nvim/ex_eval.c | 4 | ||||
-rw-r--r-- | src/nvim/version.c | 64 |
2 files changed, 67 insertions, 1 deletions
diff --git a/src/nvim/ex_eval.c b/src/nvim/ex_eval.c index a1e54e74a6..efb031f286 100644 --- a/src/nvim/ex_eval.c +++ b/src/nvim/ex_eval.c @@ -1370,7 +1370,11 @@ void ex_catch(exarg_T *eap) } save_cpo = p_cpo; p_cpo = (char_u *)""; + // Disable error messages, it will make current exception + // invalid + ++emsg_off; regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING); + --emsg_off; regmatch.rm_ic = FALSE; if (end != NULL) *end = save_char; diff --git a/src/nvim/version.c b/src/nvim/version.c index ebf21d162f..09764d0512 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -78,7 +78,69 @@ static int included_patches[] = { 1511, 1425, 1366, - + 1282, + // 1281 + // 1280 + // 1279 + // 1278 + // 1277 + // 1276 + // 1275 + // 1274 + // 1273 + // 1272 + // 1271 + // 1270 + // 1269 + // 1268 + // 1267 + // 1266 + // 1265 + // 1264 + // 1263 + // 1262 + // 1261 + // 1260 + // 1259 + // 1258 + // 1257 + // 1256 + // 1255 + // 1254 + // 1253 + // 1252 + // 1251 + // 1250 + // 1249 + // 1248 + // 1247 + // 1246 + // 1245 + // 1244 + // 1243 + // 1242 + // 1241 + // 1240 + // 1239 + // 1238 + // 1237 + // 1236 + // 1235 + // 1234 + // 1233 + // 1232 + // 1231 + // 1230 + // 1229 + // 1228 + // 1227 + // 1226 + // 1225 + // 1224 + // 1223 + // 1223 + // 1221 + // 1220 // 1219 NA // 1218 NA // 1217 NA |