comparison src/testdir/test_registers.vim @ 18436:6ec1bfb4690b v8.1.2212

patch 8.1.2212: cannot see the selection type in :reg output Commit: https://github.com/vim/vim/commit/3691f1ee72b68a47e6dcc75927bfa46565cf3614 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 24 20:17:00 2019 +0200 patch 8.1.2212: cannot see the selection type in :reg output Problem: Cannot see the selection type in :reg output. (Ayberk Ayd?n) Solution: Add c/l/b. (Christian Brabandt, closes https://github.com/vim/vim/issues/5110, closes https://github.com/vim/vim/issues/4546)
author Bram Moolenaar <Bram@vim.org>
date Thu, 24 Oct 2019 20:30:03 +0200
parents 62d84ef82f96
children a0be066d0b48
comparison
equal deleted inserted replaced
18435:bdaf40503e2a 18436:6ec1bfb4690b
37 37
38 let a = execute('display') 38 let a = execute('display')
39 let b = execute('registers') 39 let b = execute('registers')
40 40
41 call assert_equal(a, b) 41 call assert_equal(a, b)
42 call assert_match('^\n--- Registers ---\n' 42 call assert_match('^\nType Name Content\n'
43 \ . '"" a\n' 43 \ . ' c "" a\n'
44 \ . '"0 ba\n' 44 \ . ' c "0 ba\n'
45 \ . '"a b\n' 45 \ . ' c "a b\n'
46 \ . '.*' 46 \ . '.*'
47 \ . '"- a\n' 47 \ . ' c "- a\n'
48 \ . '.*' 48 \ . '.*'
49 \ . '": ls\n' 49 \ . ' c ": ls\n'
50 \ . '"% file2\n' 50 \ . ' c "% file2\n'
51 \ . '"# file1\n' 51 \ . ' c "# file1\n'
52 \ . '"/ bar\n' 52 \ . ' c "/ bar\n'
53 \ . '"= 2\*4', a) 53 \ . ' c "= 2\*4', a)
54 54
55 let a = execute('registers a') 55 let a = execute('registers a')
56 call assert_match('^\n--- Registers ---\n' 56 call assert_match('^\nType Name Content\n'
57 \ . '"a b', a) 57 \ . ' c "a b', a)
58 58
59 let a = execute('registers :') 59 let a = execute('registers :')
60 call assert_match('^\n--- Registers ---\n' 60 call assert_match('^\nType Name Content\n'
61 \ . '": ls', a) 61 \ . ' c ": ls', a)
62 62
63 bwipe! 63 bwipe!
64 endfunc 64 endfunc
65 65
66 func Test_register_one() 66 func Test_register_one()