Mercurial > vim
comparison src/testdir/test_signs.vim @ 19095:5cd0986ab02e v8.2.0108
patch 8.2.0108: when sign text is changed a manual redraw is needed
Commit: https://github.com/vim/vim/commit/bf0acff012c2f75563c20241f1a5478534fe2c7a
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Jan 9 21:01:59 2020 +0100
patch 8.2.0108: when sign text is changed a manual redraw is needed
Problem: When sign text is changed a manual redraw is needed. (Pontus
Lietzler)
Solution: Redraw automatically. (closes #5455)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 09 Jan 2020 21:15:03 +0100 |
parents | ea916dbbb9b9 |
children | 5b82f041dbbb |
comparison
equal
deleted
inserted
replaced
19094:1c802c751736 | 19095:5cd0986ab02e |
---|---|
1745 redraw | 1745 redraw |
1746 sign place 10 line=2 name=s1 | 1746 sign place 10 line=2 name=s1 |
1747 END | 1747 END |
1748 call writefile(lines, 'XtestSigncolumn') | 1748 call writefile(lines, 'XtestSigncolumn') |
1749 let buf = RunVimInTerminal('-S XtestSigncolumn', {'rows': 6}) | 1749 let buf = RunVimInTerminal('-S XtestSigncolumn', {'rows': 6}) |
1750 call VerifyScreenDump(buf, 'Test_sign_cursor_01', {}) | 1750 call VerifyScreenDump(buf, 'Test_sign_cursor_1', {}) |
1751 | |
1752 " Change the sign text | |
1753 call term_sendkeys(buf, ":sign define s1 text=-)\<CR>") | |
1754 call VerifyScreenDump(buf, 'Test_sign_cursor_2', {}) | |
1751 | 1755 |
1752 " update cursor position calculation | 1756 " update cursor position calculation |
1753 call term_sendkeys(buf, "lh") | 1757 call term_sendkeys(buf, "lh") |
1754 call term_sendkeys(buf, ":sign unplace 10\<CR>") | 1758 call term_sendkeys(buf, ":sign unplace 10\<CR>") |
1755 call VerifyScreenDump(buf, 'Test_sign_cursor_02', {}) | 1759 call VerifyScreenDump(buf, 'Test_sign_cursor_3', {}) |
1756 | 1760 |
1757 | 1761 |
1758 " clean up | 1762 " clean up |
1759 call StopVimInTerminal(buf) | 1763 call StopVimInTerminal(buf) |
1760 call delete('XtestSigncolumn') | 1764 call delete('XtestSigncolumn') |