aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/quickfix.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-03-24 13:56:55 +0100
committerJustin M. Keyes <justinkz@gmail.com>2018-03-24 14:17:40 +0100
commit7ae41442088a4b1b1cd324b683defd87998ba75c (patch)
treef6074ac4c2c317fb6546f97da2b894d411b98fc8 /src/nvim/quickfix.c
parent998a16c926623a667ecb0228f4a6cd8ba1e90201 (diff)
downloadrneovim-7ae41442088a4b1b1cd324b683defd87998ba75c.tar.gz
rneovim-7ae41442088a4b1b1cd324b683defd87998ba75c.tar.bz2
rneovim-7ae41442088a4b1b1cd324b683defd87998ba75c.zip
refactor/rename: path_try_shorten_fname()
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r--src/nvim/quickfix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c
index 1aeadcec4a..2d8c353f92 100644
--- a/src/nvim/quickfix.c
+++ b/src/nvim/quickfix.c
@@ -3649,8 +3649,8 @@ void ex_vimgrep(exarg_T *eap)
cur_qf_start = qi->qf_lists[qi->qf_curlist].qf_start;
seconds = (time_t)0;
- for (fi = 0; fi < fcount && !got_int && tomatch > 0; ++fi) {
- fname = path_shorten_fname_if_possible(fnames[fi]);
+ for (fi = 0; fi < fcount && !got_int && tomatch > 0; fi++) {
+ fname = path_try_shorten_fname(fnames[fi]);
if (time(NULL) > seconds) {
/* Display the file name every second or so, show the user we are
* working on it. */