summaryrefslogtreecommitdiff
path: root/data/vim/patches/8.1.0175
blob: caabae101d8d2829bd59b93301e73bd727f1f441 (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
To: vim_dev@googlegroups.com
Subject: Patch 8.1.0175
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.0175
Problem:    Marks test fails in very wide window. (Vladimir Lomov)
Solution:   Extend the text to match 'columns'. (closes #3180, closes #3181)
Files:	    src/testdir/test_marks.vim


*** ../vim-8.1.0174/src/testdir/test_marks.vim	Sun Jul  8 17:57:30 2018
--- src/testdir/test_marks.vim	Tue Jul 10 15:18:04 2018
***************
*** 126,140 ****
      return
    endif
    new Xone
!   call setline(1, ['ááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááááá'])
    norm! ma
  
    let a = split(execute('marks a'), "\n")
    call assert_equal(2, len(a))
!   let expected = ' a      1    0 '
!   while strwidth(expected) < &columns - 1
!     let expected .= 'á'
!   endwhile
    call assert_equal(expected, a[1])
  
    bwipe!
--- 126,137 ----
      return
    endif
    new Xone
!   call setline(1, [repeat('á', &columns)])
    norm! ma
  
    let a = split(execute('marks a'), "\n")
    call assert_equal(2, len(a))
!   let expected = ' a      1    0 ' . repeat('á', &columns - 16)
    call assert_equal(expected, a[1])
  
    bwipe!
*** ../vim-8.1.0174/src/version.c	Tue Jul 10 15:07:11 2018
--- src/version.c	Tue Jul 10 15:14:07 2018
***************
*** 791,792 ****
--- 791,794 ----
  {   /* Add new patch number below this line */
+ /**/
+     175,
  /**/

-- 
Your fault: core dumped

 /// 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    ///