\ "three |hidden| three three three three three three three three"]
call setline(1, lines)
set wrap linebreak
- set showbreak=\ >>>\
+ let &showbreak = ' >>> '
syntax match test /|hidden|/ conceal
set conceallevel=2
set concealcursor=
set fillchars=eob:+
redraw
call assert_equal('+', Screenline(2))
- set fillchars=eob:\
+ let &fillchars = 'eob: '
redraw
call assert_equal(' ', nr2char(screenchar(2, 1)))
set fillchars&
call assert_equal(expected, lines)
" check setting foldinner
- set fillchars+=foldinner:\
+ let &fillchars = &fillchars .. ',foldinner: '
let lines = ScreenLines([1, 6], 22)
let expected = [
\ ' one ',
func Test_ins_complete_end_of_line()
" this was reading past the end of the line
new
- norm 8o\80ý
+ " Note that the 'space' at the end of the expression below is a non-breaking
+ " space, U+00a0.
+ execute "norm 8o\80ý "
sil! norm o\10\18\10\18\10
bwipe!
" Test leadtab with pipe character
normal ggdG
- set listchars=tab:>-,leadtab:\|\
+ let &listchars = 'tab:>-,leadtab:| '
call append(0, ["\ttext"])
let expected = ['| text']
call Check_listchars(expected, 1, 12)
" Test leadtab with unicode bar
normal ggdG
- set listchars=tab:>-,leadtab:│\
+ let &listchars = 'tab:>-,leadtab:│ '
call append(0, ["\ttext"])
let expected = ['│ text']
call Check_listchars(expected, 1, 12)
"
" The problem occurred because WM_SETFOCUS was processed slowly, and typebuf
" was not empty when it should have been.
+" TODO: Is this test flaky?
func Test_win32_gui_setfocus_prevent_showcmd()
if !has('win32') || !has('gui_running')
throw 'Skipped: Windows GUI regression test'
CheckScreendump
let lines =<< trim END
- set showbreak=>>\
+ let &showbreak ='>> '
call setline(1, range(1, 20))
let winid = popup_dialog(
\ 'a long line here that wraps',
vim9script
# a line that spans four screen lines
setline(1, 'with lots of text in one line '->repeat(6))
- set smoothscroll scrolloff=0 showbreak=+++\
+ set smoothscroll scrolloff=0
+ &showbreak = '+++ '
END
call writefile(lines, 'XSmoothLongShowbreak', 'D')
let buf = RunVimInTerminal('-S XSmoothLongShowbreak', #{rows: 6, cols: 40})
sign define Sign5 text=X\ linehl=Comment
sign undefine Sign5
- sign define Sign5 linehl=Comment text=X\
+ " The use of execute in the next line is just to ensure the space for
+ " the text value is obvious and does not get accidently deleted.
+ execute "sign define Sign5 linehl=Comment text=X\ "
sign undefine Sign5
" define sign with backslash
vim9script
edit foobar
set nowrap
- set showbreak=+++\
+ set showbreak=+++
setline(1, ['onasdf asdf asdf sdf df asdf asdf e asdf asdf asdf asdf asd fas df', 'two'])
prop_type_add('test', {highlight: 'Special'})
prop_add(1, 0, {
set shiftwidth=4
set breakindent
- set showbreak=>\
+ let &showbreak = '> '
set breakindentopt=shift:2,min:64
call setline(1, [' " 1234567890', 'foo', 'bar'])
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 270,
/**/
269,
/**/