diff options
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index ab7e3ec6dd..7c555da1a0 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -2240,11 +2240,12 @@ void qf_list(exarg_T *eap) } } - /* Shorten all the file names, so that it is easy to read */ - shorten_fnames(FALSE); + // Shorten all the file names, so that it is easy to read. + shorten_fnames(false); - if (qi->qf_lists[qi->qf_curlist].qf_nonevalid) - all = TRUE; + if (qi->qf_lists[qi->qf_curlist].qf_nonevalid) { + all = true; + } qfp = qi->qf_lists[qi->qf_curlist].qf_start; for (i = 1; !got_int && i <= qi->qf_lists[qi->qf_curlist].qf_count; ) { if ((qfp->qf_valid || all) && idx1 <= i && i <= idx2) { @@ -2966,13 +2967,13 @@ static void qf_fill_buffer(qf_info_T *qi, buf_T *buf, qfline_T *old_last) if (qfp->qf_type == 1) { // :helpgrep STRLCPY(IObuff, path_tail(errbuf->b_fname), sizeof(IObuff)); } else { - /* shorten the file name if not done already */ + // shorten the file name if not done already if (errbuf->b_sfname == NULL - || path_is_absolute(errbuf->b_sfname)) - { - if (*dirname == NUL) + || path_is_absolute(errbuf->b_sfname)) { + if (*dirname == NUL) { os_dirname(dirname, MAXPATHL); - shorten_buf_fname(errbuf, dirname, FALSE); + } + shorten_buf_fname(errbuf, dirname, false); } STRLCPY(IObuff, errbuf->b_fname, sizeof(IObuff)); } |