Mercurial > vim
comparison src/testdir/test_breakindent.vim @ 19501:f872daa2031b v8.2.0308
patch 8.2.0308: 'showbreak' does not work for a very long line
Commit: https://github.com/vim/vim/commit/1aa76b8fd06c278fe36c39b0bbe7233c775d7423
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 23 15:17:27 2020 +0100
patch 8.2.0308: 'showbreak' does not work for a very long line
Problem: 'showbreak' does not work for a very long line. (John Little)
Solution: Check whether 'briopt' contains "sbr". (Ken Takata, closes https://github.com/vim/vim/issues/5523,
closes #5684)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 23 Feb 2020 15:30:03 +0100 |
parents | 2ef19eed524a |
children | 546bdeef35f1 |
comparison
equal
deleted
inserted
replaced
19500:6b592f4a53c1 | 19501:f872daa2031b |
---|---|
680 \ "> aaaaaaaaaaaaaaaaaa", | 680 \ "> aaaaaaaaaaaaaaaaaa", |
681 \ "> aaaaaaaaaaaaaaaaaa", | 681 \ "> aaaaaaaaaaaaaaaaaa", |
682 \ "> aaaaaaaaaaaaaaaaaa", | 682 \ "> aaaaaaaaaaaaaaaaaa", |
683 \ ] | 683 \ ] |
684 call s:compare_lines(expect, lines) | 684 call s:compare_lines(expect, lines) |
685 | |
686 setl breakindent briopt=min:18 sbr=> | |
687 norm! 5gj | |
688 let lines = s:screen_lines(1, 20) | |
689 let expect = [ | |
690 \ ">aaaaaaaaaaaaaaaaaaa", | |
691 \ ">aaaaaaaaaaaaaaaaaaa", | |
692 \ ">aaaaaaaaaaaaaaaaaaa", | |
693 \ ] | |
694 call s:compare_lines(expect, lines) | |
685 call s:close_windows('set breakindent& briopt& sbr&') | 695 call s:close_windows('set breakindent& briopt& sbr&') |
686 endfunc | 696 endfunc |