summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.0219
blob: eae18c16a51a073e34fa68b16f729439985c91c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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    ///