]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.0755: quickfix list does not handle hardlinks well v9.1.0755
authorAustin Chang <austin880625@gmail.com>
Thu, 3 Oct 2024 08:50:05 +0000 (10:50 +0200)
committerChristian Brabandt <cb@256bit.org>
Thu, 3 Oct 2024 08:56:31 +0000 (10:56 +0200)
commit29822996996550f68a781e85753ebd4d177f22da
tree8974bc824615cce4c8e2bbe86655a07e5d9e5af1
parentae62fe5c289e148b92b1d0bb912dcce7ebe14602
patch 9.1.0755: quickfix list does not handle hardlinks well

Problem:  quickfix list does not handle hardlinks well
Solution: store original file name with quickfix entry
          (Austin Chang)

Quickfix list shows entries with duplicate name if the file is opened
with the path of hard links.

The major cause is that qflist assumed that the filename passed into
`qf_add_entry` matches the filename opened with the buffer.

This patch handles this case by introduce a `qf_fname` into `qfline_S`
structure. It stores the filename from `qf_add_entry` for each quickfix
line.

closes: #15687

Signed-off-by: Austin Chang <austin880625@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/quickfix.c
src/testdir/test_quickfix.vim
src/version.c