Mercurial > vim
comparison src/quickfix.c @ 18452:0ac9e720a56e v8.1.2220
patch 8.1.2220: :cfile does not abort like other quickfix commands
Commit: https://github.com/vim/vim/commit/6a0cc916bd3cd6c2fd88b2972c92ade225603229
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Oct 26 16:48:44 2019 +0200
patch 8.1.2220: :cfile does not abort like other quickfix commands
Problem: :cfile does not abort like other quickfix commands.
Solution: Abort when desired. Add tests for aborting. (Yegappan Lakshmanan,
closes #5121)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 26 Oct 2019 17:00:03 +0200 |
parents | 34d5cd432cac |
children | 9e6d5a4abb1c |
comparison
equal
deleted
inserted
replaced
18451:291de929eee2 | 18452:0ac9e720a56e |
---|---|
5507 char_u *au_name = NULL; | 5507 char_u *au_name = NULL; |
5508 int_u save_qfid = 0; // init for gcc | 5508 int_u save_qfid = 0; // init for gcc |
5509 int res; | 5509 int res; |
5510 | 5510 |
5511 au_name = cfile_get_auname(eap->cmdidx); | 5511 au_name = cfile_get_auname(eap->cmdidx); |
5512 if (au_name != NULL) | 5512 if (au_name != NULL && apply_autocmds(EVENT_QUICKFIXCMDPRE, au_name, |
5513 apply_autocmds(EVENT_QUICKFIXCMDPRE, au_name, NULL, FALSE, curbuf); | 5513 NULL, FALSE, curbuf)) |
5514 { | |
5515 #ifdef FEAT_EVAL | |
5516 if (aborting()) | |
5517 return; | |
5518 #endif | |
5519 } | |
5514 | 5520 |
5515 enc = (*curbuf->b_p_menc != NUL) ? curbuf->b_p_menc : p_menc; | 5521 enc = (*curbuf->b_p_menc != NUL) ? curbuf->b_p_menc : p_menc; |
5516 #ifdef FEAT_BROWSE | 5522 #ifdef FEAT_BROWSE |
5517 if (cmdmod.browse) | 5523 if (cmdmod.browse) |
5518 { | 5524 { |