summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.0219
diff options
context:
space:
mode:
Diffstat (limited to 'data/vim/patches/8.1.0219')
-rw-r--r--data/vim/patches/8.1.021970
1 files changed, 70 insertions, 0 deletions
diff --git a/data/vim/patches/8.1.0219 b/data/vim/patches/8.1.0219
new file mode 100644
index 000000000..eae18c16a
--- /dev/null
+++ b/data/vim/patches/8.1.0219
@@ -0,0 +1,70 @@
+To: vim_dev@googlegroups.com
+Subject: Patch 8.1.0219
+Fcc: outbox
+From: Bram Moolenaar <Bram@moolenaar.net>
+Mime-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+------------
+
+Patch 8.1.0219
+Problem: Expanding ## fails to escape backtick.
+Solution: Escape a backtick in a file name. (closes #3257)
+Files: src/ex_docmd.c, src/testdir/test_edit.vim
+
+
+*** ../vim-8.1.0218/src/ex_docmd.c 2018-07-28 16:14:26.131040141 +0200
+--- src/ex_docmd.c 2018-07-28 17:02:45.729605564 +0200
+***************
+*** 10954,10960 ****
+ #ifndef BACKSLASH_IN_FILENAME
+ || *p == '\\'
+ #endif
+! )
+ {
+ /* insert a backslash */
+ if (retval != NULL)
+--- 10954,10960 ----
+ #ifndef BACKSLASH_IN_FILENAME
+ || *p == '\\'
+ #endif
+! || *p == '`')
+ {
+ /* insert a backslash */
+ if (retval != NULL)
+*** ../vim-8.1.0218/src/testdir/test_edit.vim 2018-06-06 21:03:57.780523901 +0200
+--- src/testdir/test_edit.vim 2018-07-28 17:05:00.900978753 +0200
+***************
+*** 1375,1380 ****
+--- 1375,1388 ----
+ set swapfile&
+ endfunc
+
++ func Test_edit_backtick()
++ next a\`b c
++ call assert_equal('a`b', expand('%'))
++ next
++ call assert_equal('c', expand('%'))
++ call assert_equal('a\`b c', expand('##'))
++ endfunc
++
+ func Test_edit_quit()
+ edit foo.txt
+ split
+*** ../vim-8.1.0218/src/version.c 2018-07-28 16:55:51.439217124 +0200
+--- src/version.c 2018-07-28 17:07:37.140211824 +0200
+***************
+*** 800,801 ****
+--- 800,803 ----
+ { /* Add new patch number below this line */
++ /**/
++ 219,
+ /**/
+
+--
+Veni, Vidi, Video -- I came, I saw, I taped what I saw.
+
+ /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
+/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
+\\\ an exciting new programming language -- http://www.Zimbu.org ///
+ \\\ help me help AIDS victims -- http://ICCF-Holland.org ///