summaryrefslogtreecommitdiffstats
path: root/src/tag.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tag.c')
-rw-r--r--src/tag.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tag.c b/src/tag.c
index 57f9fe016a..283343aae2 100644
--- a/src/tag.c
+++ b/src/tag.c
@@ -3412,6 +3412,11 @@ get_tagfname(
// move the filename one char forward and truncate the
// filepath with a NUL
filename = gettail(buf);
+ if (r_ptr != NULL)
+ {
+ STRMOVE(r_ptr + 1, r_ptr);
+ ++r_ptr;
+ }
STRMOVE(filename + 1, filename);
*filename++ = NUL;