summaryrefslogtreecommitdiffstats
path: root/src/testdir/test102.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-11-12 05:28:26 +0100
committerBram Moolenaar <Bram@vim.org>2013-11-12 05:28:26 +0100
commit8f5610df7312023e2da5dc8f885e1b159a57dee2 (patch)
tree52b08808290c9f8e8293bf11e4298de82070c839 /src/testdir/test102.in
parent0671de335f87c15aa989e99952098feea1285830 (diff)
updated for version 7.4.090v7.4.090
Problem: Win32: When a directory name contains an exclamation mark, completion doesn't complete the contents of the directory. Solution: Escape the exclamation mark. (Jan Stocker)
Diffstat (limited to 'src/testdir/test102.in')
-rw-r--r--src/testdir/test102.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/testdir/test102.in b/src/testdir/test102.in
new file mode 100644
index 0000000000..35e9f6c2cf
--- /dev/null
+++ b/src/testdir/test102.in
@@ -0,0 +1,12 @@
+Test if fnameescape is correct for special chars like !
+
+STARTTEST
+:%d
+:let fname = 'Xspa ce'
+:try | exe "w! " . fnameescape(fname) | put='Space' | endtry
+:let fname = 'Xemark!'
+:try | exe "w! " . fnameescape(fname) | put='ExclamationMark' | endtry
+:w! test.out
+:qa!
+ENDTEST
+