diff options
| Commit | 889eccc7aa21b0ad4a83c2b12a43362368b6edec (patch) | |
|---|---|---|
| Author | 2026-03-31 21:12:45 +0300 | |
| Committer | 2026-03-31 21:12:45 +0300 | |
| Files | 0e13dacd00c9bf119c937f1541d0030d88abbea0 | |
| anderson-889eccc7aa21b0ad4a83c2b12a43362368b6edec.tar anderson-889eccc7aa21b0ad4a83c2b12a43362368b6edec.tar.gz anderson-889eccc7aa21b0ad4a83c2b12a43362368b6edec.zip | ||
| Parent | 9f07e92211db1f830fb9af50cde9ffa0f020d207 (diff) | |
feat(ux): quickfix do not repeat file name
1 files changed, 6 insertions, 2 deletions
| -rw-r--r-- | lua/ux.lua | 8 |
@@ -55,8 +55,12 @@ vim.cmd [[ let lastfile = "" for d in getqflist() let fn = fnamemodify(bufname(d.bufnr), ":t") - call add(qfl, printf(strfmt, fn == lastfile ? '' : fn, d.lnum, d.text)) - let lastfile = fn + if d.lnum != 0 + call add(qfl, printf(strfmt, fn == lastfile ? '' : fn, d.lnum, d.text)) + let lastfile = fn + else + call add(qfl, ' ') + endif endfor return qfl endfunction |
