aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/denote/util.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/denote/util.lua b/lua/denote/util.lua
index 7cffd23..95ee7dc 100644
--- a/lua/denote/util.lua
+++ b/lua/denote/util.lua
@@ -19,7 +19,7 @@ function M.file(name, tags)
if tags then
for i, tag in pairs(tags) do
tags_str = tags_str .. tag
- if i < #tags - 1 then
+ if i < #tags then
tags_str = tags_str .. M.config.filename.tag_sep
end
end