| Bram Moolenaar | 544d3bc | 2017-02-05 21:14:50 +0100 | [diff] [blame] | 1 | " Test for linebreak and list option in utf-8 mode |
| 2 | |
| 3 | set encoding=utf-8 |
| 4 | scriptencoding utf-8 |
| 5 | |
| Bram Moolenaar | b46fecd | 2019-06-15 17:58:09 +0200 | [diff] [blame] | 6 | source check.vim |
| 7 | CheckOption linebreak |
| 8 | CheckFeature conceal |
| 9 | CheckFeature signs |
| Bram Moolenaar | 544d3bc | 2017-02-05 21:14:50 +0100 | [diff] [blame] | 10 | |
| 11 | source view_util.vim |
| zeertzjq | df23d7f | 2024-02-09 18:14:12 +0100 | [diff] [blame] | 12 | source screendump.vim |
| Bram Moolenaar | 544d3bc | 2017-02-05 21:14:50 +0100 | [diff] [blame] | 13 | |
| Bram Moolenaar | 1e11536 | 2019-01-09 23:01:02 +0100 | [diff] [blame] | 14 | func s:screen_lines(lnum, width) abort |
| Bram Moolenaar | 544d3bc | 2017-02-05 21:14:50 +0100 | [diff] [blame] | 15 | return ScreenLines(a:lnum, a:width) |
| Bram Moolenaar | 1e11536 | 2019-01-09 23:01:02 +0100 | [diff] [blame] | 16 | endfunc |
| Bram Moolenaar | 544d3bc | 2017-02-05 21:14:50 +0100 | [diff] [blame] | 17 | |
| Bram Moolenaar | 1e11536 | 2019-01-09 23:01:02 +0100 | [diff] [blame] | 18 | func s:compare_lines(expect, actual) |
| Bram Moolenaar | 544d3bc | 2017-02-05 21:14:50 +0100 | [diff] [blame] | 19 | call assert_equal(a:expect, a:actual) |
| Bram Moolenaar | 1e11536 | 2019-01-09 23:01:02 +0100 | [diff] [blame] | 20 | endfunc |
| Bram Moolenaar | 544d3bc | 2017-02-05 21:14:50 +0100 | [diff] [blame] | 21 | |
| Bram Moolenaar | 1e11536 | 2019-01-09 23:01:02 +0100 | [diff] [blame] | 22 | func s:screen_attr(lnum, chars, ...) abort |
| Bram Moolenaar | 544d3bc | 2017-02-05 21:14:50 +0100 | [diff] [blame] | 23 | let line = getline(a:lnum) |
| 24 | let attr = [] |
| 25 | let prefix = get(a:000, 0, 0) |
| 26 | for i in range(a:chars[0], a:chars[1]) |
| 27 | let scol = strdisplaywidth(strcharpart(line, 0, i-1)) + 1 |
| 28 | let attr += [screenattr(a:lnum, scol + prefix)] |
| 29 | endfor |
| 30 | return attr |
| Bram Moolenaar | 1e11536 | 2019-01-09 23:01:02 +0100 | [diff] [blame] | 31 | endfunc |
| Bram Moolenaar | 544d3bc | 2017-02-05 21:14:50 +0100 | [diff] [blame] | 32 | |
| Bram Moolenaar | 1e11536 | 2019-01-09 23:01:02 +0100 | [diff] [blame] | 33 | func s:test_windows(...) |
| Bram Moolenaar | 544d3bc | 2017-02-05 21:14:50 +0100 | [diff] [blame] | 34 | call NewWindow(10, 20) |
| 35 | setl ts=4 sw=4 sts=4 linebreak sbr=+ wrap |
| 36 | exe get(a:000, 0, '') |
| Bram Moolenaar | 1e11536 | 2019-01-09 23:01:02 +0100 | [diff] [blame] | 37 | endfunc |
| Bram Moolenaar | 544d3bc | 2017-02-05 21:14:50 +0100 | [diff] [blame] | 38 | |
| Bram Moolenaar | 1e11536 | 2019-01-09 23:01:02 +0100 | [diff] [blame] | 39 | func s:close_windows(...) |
| Bram Moolenaar | 544d3bc | 2017-02-05 21:14:50 +0100 | [diff] [blame] | 40 | call CloseWindow() |
| 41 | exe get(a:000, 0, '') |
| Bram Moolenaar | 1e11536 | 2019-01-09 23:01:02 +0100 | [diff] [blame] | 42 | endfunc |
| Bram Moolenaar | 544d3bc | 2017-02-05 21:14:50 +0100 | [diff] [blame] | 43 | |
| 44 | func Test_linebreak_with_fancy_listchars() |
| 45 | call s:test_windows("setl list listchars=nbsp:\u2423,tab:\u2595\u2014,trail:\u02d1,eol:\ub6") |
| 46 | call setline(1, "\tabcdef hijklmn\tpqrstuvwxyz\u00a01060ABCDEFGHIJKLMNOP ") |
| 47 | redraw! |
| 48 | let lines = s:screen_lines([1, 4], winwidth(0)) |
| 49 | let expect = [ |
| 50 | \ "▕———abcdef ", |
| 51 | \ "+hijklmn▕——— ", |
| 52 | \ "+pqrstuvwxyz␣1060ABC", |
| 53 | \ "+DEFGHIJKLMNOPˑ¶ ", |
| 54 | \ ] |
| 55 | call s:compare_lines(expect, lines) |
| 56 | call s:close_windows() |
| 57 | endfunc |
| 58 | |
| 59 | func Test_nolinebreak_with_list() |
| 60 | call s:test_windows("setl nolinebreak list listchars=nbsp:\u2423,tab:\u2595\u2014,trail:\u02d1,eol:\ub6") |
| 61 | call setline(1, "\tabcdef hijklmn\tpqrstuvwxyz\u00a01060ABCDEFGHIJKLMNOP ") |
| 62 | redraw! |
| 63 | let lines = s:screen_lines([1, 4], winwidth(0)) |
| 64 | let expect = [ |
| 65 | \ "▕———abcdef hijklmn▕—", |
| 66 | \ "+pqrstuvwxyz␣1060ABC", |
| 67 | \ "+DEFGHIJKLMNOPˑ¶ ", |
| 68 | \ "~ ", |
| 69 | \ ] |
| 70 | call s:compare_lines(expect, lines) |
| 71 | call s:close_windows() |
| 72 | endfunc |
| 73 | |
| Bram Moolenaar | 89a54b4 | 2021-09-07 20:45:31 +0200 | [diff] [blame] | 74 | " this was causing a crash |
| 75 | func Test_linebreak_with_list_and_tabs() |
| 76 | set linebreak list listchars=tab:⇤\ ⇥ tabstop=100 |
| 77 | new |
| 78 | call setline(1, "\t\t\ttext") |
| 79 | redraw |
| 80 | bwipe! |
| 81 | set nolinebreak nolist listchars&vim tabstop=8 |
| 82 | endfunc |
| 83 | |
| Bram Moolenaar | 544d3bc | 2017-02-05 21:14:50 +0100 | [diff] [blame] | 84 | func Test_linebreak_with_nolist() |
| 85 | call s:test_windows('setl nolist') |
| 86 | call setline(1, "\t*mask = nil;") |
| 87 | redraw! |
| 88 | let lines = s:screen_lines([1, 4], winwidth(0)) |
| 89 | let expect = [ |
| 90 | \ " *mask = nil; ", |
| 91 | \ "~ ", |
| 92 | \ "~ ", |
| 93 | \ "~ ", |
| 94 | \ ] |
| 95 | call s:compare_lines(expect, lines) |
| 96 | call s:close_windows() |
| 97 | endfunc |
| 98 | |
| 99 | func Test_list_and_concealing1() |
| 100 | call s:test_windows('setl list listchars=tab:>- cole=1') |
| 101 | call setline(1, [ |
| 102 | \ "#define ABCDE\t\t1", |
| 103 | \ "#define ABCDEF\t\t1", |
| 104 | \ "#define ABCDEFG\t\t1", |
| 105 | \ "#define ABCDEFGH\t1", |
| 106 | \ "#define MSG_MODE_FILE\t\t\t1", |
| 107 | \ "#define MSG_MODE_CONSOLE\t\t2", |
| 108 | \ "#define MSG_MODE_FILE_AND_CONSOLE\t3", |
| 109 | \ "#define MSG_MODE_FILE_THEN_CONSOLE\t4", |
| 110 | \ ]) |
| 111 | vert resize 40 |
| 112 | syn match Conceal conceal cchar=>'AB\|MSG_MODE' |
| 113 | redraw! |
| 114 | let lines = s:screen_lines([1, 7], winwidth(0)) |
| 115 | let expect = [ |
| 116 | \ "#define ABCDE>-->---1 ", |
| 117 | \ "#define >CDEF>-->---1 ", |
| 118 | \ "#define >CDEFG>->---1 ", |
| 119 | \ "#define >CDEFGH>----1 ", |
| 120 | \ "#define >_FILE>--------->--->---1 ", |
| 121 | \ "#define >_CONSOLE>---------->---2 ", |
| 122 | \ "#define >_FILE_AND_CONSOLE>---------3 ", |
| 123 | \ ] |
| 124 | call s:compare_lines(expect, lines) |
| 125 | call s:close_windows() |
| 126 | endfunc |
| 127 | |
| 128 | func Test_list_and_concealing2() |
| 129 | call s:test_windows('setl nowrap ts=2 list listchars=tab:>- cole=2 concealcursor=n') |
| 130 | call setline(1, "bbeeeeee\t\t;\tsome text") |
| 131 | vert resize 40 |
| 132 | syn clear |
| 133 | syn match meaning /;\s*\zs.*/ |
| 134 | syn match hasword /^\x\{8}/ contains=word |
| 135 | syn match word /\<\x\{8}\>/ contains=beginword,endword contained |
| 136 | syn match beginword /\<\x\x/ contained conceal |
| 137 | syn match endword /\x\{6}\>/ contained |
| 138 | hi meaning guibg=blue |
| 139 | hi beginword guibg=green |
| 140 | hi endword guibg=red |
| 141 | redraw! |
| 142 | let lines = s:screen_lines([1, 1], winwidth(0)) |
| 143 | let expect = [ |
| 144 | \ "eeeeee>--->-;>some text ", |
| 145 | \ ] |
| 146 | call s:compare_lines(expect, lines) |
| 147 | call s:close_windows() |
| 148 | endfunc |
| 149 | |
| 150 | func Test_screenattr_for_comment() |
| 151 | call s:test_windows("setl ft=c ts=7 list listchars=nbsp:\u2423,tab:\u2595\u2014,trail:\u02d1,eol:\ub6") |
| 152 | call setline(1, " /*\t\t and some more */") |
| 153 | norm! gg0 |
| 154 | syntax on |
| 155 | hi SpecialKey term=underline ctermfg=red guifg=red |
| 156 | redraw! |
| 157 | let line = getline(1) |
| 158 | let attr = s:screen_attr(1, [1, 6]) |
| 159 | call assert_notequal(attr[0], attr[1]) |
| 160 | call assert_notequal(attr[1], attr[3]) |
| 161 | call assert_notequal(attr[3], attr[5]) |
| 162 | call s:close_windows() |
| 163 | endfunc |
| 164 | |
| 165 | func Test_visual_block_and_selection_exclusive() |
| 166 | call s:test_windows('setl selection=exclusive') |
| 167 | call setline(1, "long line: " . repeat("foobar ", 40) . "TARGETÃ' at end") |
| 168 | exe "norm! $3B\<C-v>eAx\<Esc>" |
| 169 | let lines = s:screen_lines([1, 10], winwidth(0)) |
| 170 | let expect = [ |
| Bram Moolenaar | 0937b9f | 2022-10-06 21:24:34 +0100 | [diff] [blame] | 171 | \ "+foobar foobar ", |
| Bram Moolenaar | 544d3bc | 2017-02-05 21:14:50 +0100 | [diff] [blame] | 172 | \ "+foobar foobar ", |
| 173 | \ "+foobar foobar ", |
| 174 | \ "+foobar foobar ", |
| 175 | \ "+foobar foobar ", |
| 176 | \ "+foobar foobar ", |
| 177 | \ "+foobar foobar ", |
| 178 | \ "+foobar foobar ", |
| 179 | \ "+foobar foobar ", |
| 180 | \ "+foobar TARGETÃx' ", |
| 181 | \ ] |
| 182 | call s:compare_lines(expect, lines) |
| 183 | call s:close_windows() |
| 184 | endfunc |
| 185 | |
| 186 | func Test_multibyte_sign_and_colorcolumn() |
| 187 | call s:test_windows("setl nolinebreak cc=3 list listchars=nbsp:\u2423,tab:\u2595\u2014,trail:\u02d1,eol:\ub6") |
| 188 | call setline(1, ["", "a b c", "a b c"]) |
| 189 | exe "sign define foo text=\uff0b" |
| 190 | exe "sign place 1 name=foo line=2 buffer=" . bufnr('%') |
| 191 | redraw! |
| 192 | norm! ggj0 |
| 193 | let signwidth = strdisplaywidth("\uff0b") |
| 194 | let attr1 = s:screen_attr(2, [1, 3], signwidth) |
| 195 | let attr2 = s:screen_attr(3, [1, 3], signwidth) |
| 196 | call assert_equal(attr1[0], attr2[0]) |
| 197 | call assert_equal(attr1[1], attr2[1]) |
| 198 | call assert_equal(attr1[2], attr2[2]) |
| 199 | let lines = s:screen_lines([1, 3], winwidth(0)) |
| 200 | let expect = [ |
| 201 | \ " ¶ ", |
| 202 | \ "+a b c¶ ", |
| 203 | \ " a b c¶ ", |
| 204 | \ ] |
| 205 | call s:compare_lines(expect, lines) |
| 206 | call s:close_windows() |
| 207 | endfunc |
| Bram Moolenaar | 38632fa | 2017-02-26 19:40:59 +0100 | [diff] [blame] | 208 | |
| Bram Moolenaar | 774e5a9 | 2017-06-25 18:03:37 +0200 | [diff] [blame] | 209 | func Test_colorcolumn_priority() |
| 210 | call s:test_windows('setl cc=4 cuc hls') |
| 211 | call setline(1, ["xxyy", ""]) |
| 212 | norm! gg |
| 213 | exe "normal! /xxyy\<CR>" |
| 214 | norm! G |
| 215 | redraw! |
| 216 | let line_attr = s:screen_attr(1, [1, &cc]) |
| 217 | " Search wins over CursorColumn |
| 218 | call assert_equal(line_attr[1], line_attr[0]) |
| 219 | " Search wins over Colorcolumn |
| 220 | call assert_equal(line_attr[2], line_attr[3]) |
| 221 | call s:close_windows('setl hls&vim') |
| 222 | endfunc |
| 223 | |
| Bram Moolenaar | 38632fa | 2017-02-26 19:40:59 +0100 | [diff] [blame] | 224 | func Test_illegal_byte_and_breakat() |
| 225 | call s:test_windows("setl sbr= brk+=<") |
| 226 | vert resize 18 |
| 227 | call setline(1, repeat("\x80", 6)) |
| 228 | redraw! |
| 229 | let lines = s:screen_lines([1, 2], winwidth(0)) |
| 230 | let expect = [ |
| 231 | \ "<80><80><80><80><8", |
| 232 | \ "0><80> ", |
| 233 | \ ] |
| 234 | call s:compare_lines(expect, lines) |
| 235 | call s:close_windows('setl brk&vim') |
| 236 | endfunc |
| 237 | |
| 238 | func Test_multibyte_wrap_and_breakat() |
| 239 | call s:test_windows("setl sbr= brk+=>") |
| 240 | call setline(1, repeat('a', 17) . repeat('あ', 2)) |
| 241 | redraw! |
| 242 | let lines = s:screen_lines([1, 2], winwidth(0)) |
| 243 | let expect = [ |
| 244 | \ "aaaaaaaaaaaaaaaaaあ>", |
| 245 | \ "あ ", |
| 246 | \ ] |
| 247 | call s:compare_lines(expect, lines) |
| 248 | call s:close_windows('setl brk&vim') |
| 249 | endfunc |
| Bram Moolenaar | abc39ab | 2017-03-01 18:04:05 +0100 | [diff] [blame] | 250 | |
| 251 | func Test_chinese_char_on_wrap_column() |
| 252 | call s:test_windows("setl nolbr wrap sbr=") |
| Bram Moolenaar | abc39ab | 2017-03-01 18:04:05 +0100 | [diff] [blame] | 253 | call setline(1, [ |
| 254 | \ 'aaaaaaaaaaaaaaaaaaa中'. |
| 255 | \ 'aaaaaaaaaaaaaaaaa中'. |
| 256 | \ 'aaaaaaaaaaaaaaaaa中'. |
| 257 | \ 'aaaaaaaaaaaaaaaaa中'. |
| 258 | \ 'aaaaaaaaaaaaaaaaa中'. |
| 259 | \ 'aaaaaaaaaaaaaaaaa中'. |
| 260 | \ 'aaaaaaaaaaaaaaaaa中'. |
| 261 | \ 'aaaaaaaaaaaaaaaaa中'. |
| 262 | \ 'aaaaaaaaaaaaaaaaa中'. |
| 263 | \ 'aaaaaaaaaaaaaaaaa中'. |
| 264 | \ 'hello']) |
| 265 | call cursor(1,1) |
| 266 | norm! $ |
| 267 | redraw! |
| 268 | let expect=[ |
| Bram Moolenaar | 0466d39 | 2022-10-03 17:07:34 +0100 | [diff] [blame] | 269 | \ '<<<aaaaaaaaaaaaaaaa>', |
| Bram Moolenaar | abc39ab | 2017-03-01 18:04:05 +0100 | [diff] [blame] | 270 | \ '中aaaaaaaaaaaaaaaaa>', |
| 271 | \ '中aaaaaaaaaaaaaaaaa>', |
| 272 | \ '中aaaaaaaaaaaaaaaaa>', |
| 273 | \ '中aaaaaaaaaaaaaaaaa>', |
| 274 | \ '中aaaaaaaaaaaaaaaaa>', |
| 275 | \ '中aaaaaaaaaaaaaaaaa>', |
| 276 | \ '中aaaaaaaaaaaaaaaaa>', |
| 277 | \ '中aaaaaaaaaaaaaaaaa>', |
| 278 | \ '中hello '] |
| 279 | let lines = s:screen_lines([1, 10], winwidth(0)) |
| 280 | call s:compare_lines(expect, lines) |
| zeertzjq | b557f48 | 2023-08-22 22:07:34 +0200 | [diff] [blame] | 281 | call assert_equal(len(expect), winline()) |
| 282 | call assert_equal(strwidth(trim(expect[-1], ' ', 2)), wincol()) |
| zeertzjq | b5d6b5c | 2024-07-18 21:13:31 +0200 | [diff] [blame] | 283 | norm! g0 |
| 284 | call assert_equal(len(expect), winline()) |
| 285 | call assert_equal(1, wincol()) |
| zeertzjq | b557f48 | 2023-08-22 22:07:34 +0200 | [diff] [blame] | 286 | call s:close_windows() |
| 287 | endfunc |
| 288 | |
| 289 | func Test_chinese_char_on_wrap_column_sbr() |
| 290 | call s:test_windows("setl nolbr wrap sbr=!!!") |
| 291 | call setline(1, [ |
| 292 | \ 'aaaaaaaaaaaaaaaaaaa中'. |
| 293 | \ 'aaaaaaaaaaaaaa中'. |
| 294 | \ 'aaaaaaaaaaaaaa中'. |
| 295 | \ 'aaaaaaaaaaaaaa中'. |
| 296 | \ 'aaaaaaaaaaaaaa中'. |
| 297 | \ 'aaaaaaaaaaaaaa中'. |
| 298 | \ 'aaaaaaaaaaaaaa中'. |
| 299 | \ 'aaaaaaaaaaaaaa中'. |
| 300 | \ 'aaaaaaaaaaaaaa中'. |
| 301 | \ 'aaaaaaaaaaaaaa中'. |
| 302 | \ 'hello']) |
| 303 | call cursor(1,1) |
| 304 | norm! $ |
| 305 | redraw! |
| 306 | let expect=[ |
| 307 | \ '!!!中aaaaaaaaaaaaaa>', |
| 308 | \ '!!!中aaaaaaaaaaaaaa>', |
| 309 | \ '!!!中aaaaaaaaaaaaaa>', |
| 310 | \ '!!!中aaaaaaaaaaaaaa>', |
| 311 | \ '!!!中aaaaaaaaaaaaaa>', |
| 312 | \ '!!!中aaaaaaaaaaaaaa>', |
| 313 | \ '!!!中aaaaaaaaaaaaaa>', |
| 314 | \ '!!!中aaaaaaaaaaaaaa>', |
| 315 | \ '!!!中aaaaaaaaaaaaaa>', |
| 316 | \ '!!!中hello '] |
| 317 | let lines = s:screen_lines([1, 10], winwidth(0)) |
| 318 | call s:compare_lines(expect, lines) |
| 319 | call assert_equal(len(expect), winline()) |
| 320 | call assert_equal(strwidth(trim(expect[-1], ' ', 2)), wincol()) |
| zeertzjq | b5d6b5c | 2024-07-18 21:13:31 +0200 | [diff] [blame] | 321 | norm! g0 |
| 322 | call assert_equal(len(expect), winline()) |
| 323 | call assert_equal(4, wincol()) |
| zeertzjq | b557f48 | 2023-08-22 22:07:34 +0200 | [diff] [blame] | 324 | call s:close_windows() |
| 325 | endfunc |
| 326 | |
| 327 | func Test_unprintable_char_on_wrap_column() |
| 328 | call s:test_windows("setl nolbr wrap sbr=") |
| 329 | call setline(1, 'aaa' .. repeat("\uFEFF", 50) .. 'bbb') |
| 330 | call cursor(1,1) |
| 331 | norm! $ |
| 332 | redraw! |
| 333 | let expect=[ |
| 334 | \ '<<<<feff><feff><feff', |
| 335 | \ '><feff><feff><feff><', |
| 336 | \ 'feff><feff><feff><fe', |
| 337 | \ 'ff><feff><feff><feff', |
| 338 | \ '><feff><feff><feff><', |
| 339 | \ 'feff><feff><feff><fe', |
| 340 | \ 'ff><feff><feff><feff', |
| 341 | \ '><feff><feff><feff><', |
| 342 | \ 'feff><feff><feff><fe', |
| 343 | \ 'ff>bbb '] |
| 344 | let lines = s:screen_lines([1, 10], winwidth(0)) |
| 345 | call s:compare_lines(expect, lines) |
| 346 | call assert_equal(len(expect), winline()) |
| 347 | call assert_equal(strwidth(trim(expect[-1], ' ', 2)), wincol()) |
| 348 | setl sbr=!! |
| 349 | redraw! |
| 350 | let expect=[ |
| 351 | \ '!!><feff><feff><feff', |
| 352 | \ '!!><feff><feff><feff', |
| 353 | \ '!!><feff><feff><feff', |
| 354 | \ '!!><feff><feff><feff', |
| 355 | \ '!!><feff><feff><feff', |
| 356 | \ '!!><feff><feff><feff', |
| 357 | \ '!!><feff><feff><feff', |
| 358 | \ '!!><feff><feff><feff', |
| 359 | \ '!!><feff><feff><feff', |
| 360 | \ '!!><feff><feff>bbb '] |
| 361 | let lines = s:screen_lines([1, 10], winwidth(0)) |
| 362 | call s:compare_lines(expect, lines) |
| 363 | call assert_equal(len(expect), winline()) |
| 364 | call assert_equal(strwidth(trim(expect[-1], ' ', 2)), wincol()) |
| Bram Moolenaar | abc39ab | 2017-03-01 18:04:05 +0100 | [diff] [blame] | 365 | call s:close_windows() |
| Bram Moolenaar | 6d91bcb | 2020-08-12 18:50:36 +0200 | [diff] [blame] | 366 | endfunc |
| 367 | |
| zeertzjq | df23d7f | 2024-02-09 18:14:12 +0100 | [diff] [blame] | 368 | " Test that Visual selection is drawn correctly when 'linebreak' is set and |
| 369 | " selection ends before multibyte 'showbreak'. |
| 370 | func Test_visual_ends_before_showbreak() |
| 371 | CheckScreendump |
| 372 | |
| Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 373 | " Redraw at the end is necessary due to https://github.com/vim/vim/issues/16620 |
| zeertzjq | df23d7f | 2024-02-09 18:14:12 +0100 | [diff] [blame] | 374 | let lines =<< trim END |
| 375 | vim9script |
| 376 | &wrap = true |
| 377 | &linebreak = true |
| 378 | &showbreak = '↪ ' |
| 379 | ['xxxxx ' .. 'y'->repeat(&columns - 6) .. ' zzzz']->setline(1) |
| 380 | normal! wvel |
| Yee Cheng Chin | e70587d | 2025-02-13 20:55:45 +0100 | [diff] [blame] | 381 | redraw |
| zeertzjq | df23d7f | 2024-02-09 18:14:12 +0100 | [diff] [blame] | 382 | END |
| 383 | call writefile(lines, 'XvisualEndsBeforeShowbreak', 'D') |
| 384 | let buf = RunVimInTerminal('-S XvisualEndsBeforeShowbreak', #{rows: 6}) |
| 385 | call VerifyScreenDump(buf, 'Test_visual_ends_before_showbreak', {}) |
| 386 | |
| 387 | call StopVimInTerminal(buf) |
| 388 | endfunc |
| 389 | |
| Bram Moolenaar | 6d91bcb | 2020-08-12 18:50:36 +0200 | [diff] [blame] | 390 | " vim: shiftwidth=2 sts=2 expandtab |