comparison src/testdir/test_viminfo.vim @ 9978:baad324e9fbc v7.4.2262

commit https://github.com/vim/vim/commit/257095760732597983bdd026e791907b7980e295 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Aug 26 20:41:16 2016 +0200 patch 7.4.2262 Problem: Fail to read register content from viminfo if it is 438 characters long. (John Chen) Solution: Adjust the check for line wrapping. (closes https://github.com/vim/vim/issues/1010)
author Christian Brabandt <cb@256bit.org>
date Fri, 26 Aug 2016 20:45:08 +0200
parents e975914c17e9
children cd16ef948ad1
comparison
equal deleted inserted replaced
9977:5b1f5a97901a 9978:baad324e9fbc
211 call assert_equal("V", getregtype('b')) 211 call assert_equal("V", getregtype('b'))
212 call assert_equal("keep\n", getreg('c')) 212 call assert_equal("keep\n", getreg('c'))
213 call assert_equal("V", getregtype('c')) 213 call assert_equal("V", getregtype('c'))
214 call assert_equal(l, getreg('d', 1, 1)) 214 call assert_equal(l, getreg('d', 1, 1))
215 call assert_equal("V", getregtype('d')) 215 call assert_equal("V", getregtype('d'))
216
217 " Length around 440 switches to line continuation.
218 let len = 434
219 while len < 445
220 let s = repeat('a', len)
221 call setreg('"', s)
222 wviminfo Xviminfo
223 call setreg('"', '')
224 rviminfo Xviminfo
225 call assert_equal(s, getreg('"'), 'wrong register at length: ' . len)
226
227 let len += 1
228 endwhile
216 229
217 call delete('Xviminfo') 230 call delete('Xviminfo')
218 endfunc 231 endfunc
219 232
220 func Test_viminfo_marks() 233 func Test_viminfo_marks()