mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
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.
768ce2435a
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?
This commit is contained in:
@@ -1370,7 +1370,11 @@ void ex_catch(exarg_T *eap)
|
|||||||
}
|
}
|
||||||
save_cpo = p_cpo;
|
save_cpo = p_cpo;
|
||||||
p_cpo = (char_u *)"";
|
p_cpo = (char_u *)"";
|
||||||
|
// Disable error messages, it will make current exception
|
||||||
|
// invalid
|
||||||
|
++emsg_off;
|
||||||
regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING);
|
regmatch.regprog = vim_regcomp(pat, RE_MAGIC + RE_STRING);
|
||||||
|
--emsg_off;
|
||||||
regmatch.rm_ic = FALSE;
|
regmatch.rm_ic = FALSE;
|
||||||
if (end != NULL)
|
if (end != NULL)
|
||||||
*end = save_char;
|
*end = save_char;
|
||||||
|
@@ -78,7 +78,69 @@ static int included_patches[] = {
|
|||||||
1511,
|
1511,
|
||||||
1425,
|
1425,
|
||||||
1366,
|
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
|
// 1219 NA
|
||||||
// 1218 NA
|
// 1218 NA
|
||||||
// 1217 NA
|
// 1217 NA
|
||||||
|
Reference in New Issue
Block a user