diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/tag.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/tag.c b/src/nvim/tag.c index 90269c776e..cc7ff070c2 100644 --- a/src/nvim/tag.c +++ b/src/nvim/tag.c @@ -2583,6 +2583,10 @@ int get_tagfname(tagname_T *tnp, int first, char *buf) // move the filename one char forward and truncate the // filepath with a NUL filename = path_tail(buf); + if (r_ptr != NULL) { + STRMOVE(r_ptr + 1, r_ptr); + r_ptr++; + } STRMOVE(filename + 1, filename); *filename++ = NUL; |