summaryrefslogtreecommitdiffstats
path: root/src/po/fixfilenames.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/po/fixfilenames.vim')
-rw-r--r--src/po/fixfilenames.vim8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/po/fixfilenames.vim b/src/po/fixfilenames.vim
index 04bc079..2344b3b 100644
--- a/src/po/fixfilenames.vim
+++ b/src/po/fixfilenames.vim
@@ -3,9 +3,11 @@
set shortmess+=A
-for name in argv()[1:]
- let jsname = fnamemodify(name, ":t:r") .. ".js"
- exe "%s+" .. jsname .. "+" .. substitute(name, '\\', '/', 'g') .. "+"
+let s:namenum = 0
+for s:name in argv()[1:]
+ let s:jsname = fnamemodify(s:name, ":t:r") .. s:namenum .. ".js"
+ exe "%s+" .. s:jsname .. "+" .. substitute(s:name, '\\', '/', 'g') .. "+ge"
+ let s:namenum +=1
endfor
write