Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a problem with 'breakindent' and 'showbreak'
When both 'breakindent' and 'showbreak' are set and 'briopt' includes "sbr", a very long line that overflows a window may not shown correctly. 1. Create a window with the size 20x10. `:10new | 20vnew` 2. Set a very long line. (200 "a"s.) `200aa<Esc>` 3. Set some options. `:set breakindent breakindentopt=shift:2,sbr,min:18 showbreak=>` The text will be shown as: ``` aaaaaaaaaaaaaaaaaaaa > aaaaaaaaaaaaaaaaaa > aaaaaaaaaaaaaaaaaa ... ``` 4. Scroll one screen line. `:set scrolloff=5` `5gj` The text will be shown as: ``` >aaaaaaaaaaaaaaaaaaa > aaaaaaaaaaaaaaaaaa > aaaaaaaaaaaaaaaaaa ... ``` However, it should be: ``` > aaaaaaaaaaaaaaaaaa > aaaaaaaaaaaaaaaaaa > aaaaaaaaaaaaaaaaaa ... ``` Yank and some operations may not work properly as well.
- Loading branch information