Mercurial > vim
annotate src/testdir/test75.in @ 11416:32aed0993813 v8.0.0592
patch 8.0.0592: if a job writes to a buffer screen is not updated
commit https://github.com/vim/vim/commit/29ae377ea7039874337bc79ace9ab2b37b9056e5
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Apr 30 19:39:39 2017 +0200
patch 8.0.0592: if a job writes to a buffer screen is not updated
Problem: If a job writes to a buffer and the user is typing a command, the
screen isn't updated. When a message is displayed the changed
buffer may cause it to be cleared. (Ramel Eshed)
Solution: Update the screen and then the command line if the screen didn't
scroll. Avoid inserting screen lines, as it clears any message.
Update the status line when the buffer changed.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 30 Apr 2017 19:45:03 +0200 |
parents | dd3dac42cb9b |
children |
rev | line source |
---|---|
5405 | 1 Tests for maparg(). |
5718 | 2 Also test utf8 map with a 0x80 byte. |
2610 | 3 |
4 STARTTEST | |
5 :so small.vim | |
5718 | 6 :so mbyte.vim |
3026 | 7 :set cpo-=< |
5718 | 8 :set encoding=utf8 |
2610 | 9 :" Test maparg() with a string result |
10 :map foo<C-V> is<F4>foo | |
11 :vnoremap <script> <buffer> <expr> <silent> bar isbar | |
12 :call append('$', maparg('foo<C-V>')) | |
13 :call append('$', string(maparg('foo<C-V>', '', 0, 1))) | |
14 :call append('$', string(maparg('bar', '', 0, 1))) | |
5035
1cf89d38aa76
updated for version 7.3.1261
Bram Moolenaar <bram@vim.org>
parents:
3026
diff
changeset
|
15 :map <buffer> <nowait> foo bar |
1cf89d38aa76
updated for version 7.3.1261
Bram Moolenaar <bram@vim.org>
parents:
3026
diff
changeset
|
16 :call append('$', string(maparg('foo', '', 0, 1))) |
2610 | 17 :" |
3026 | 18 :map abc x<char-114>x |
19 :call append('$', maparg('abc')) | |
20 :map abc y<S-char-114>y | |
21 :call append('$', maparg('abc')) | |
22 :" | |
5718 | 23 Go:" |
24 :" Outside of the range, minimum | |
25 :inoremap <Char-0x1040> a | |
6195 | 26 :execute "normal a\u1040\<Esc>" |
5718 | 27 :" Inside of the range, minimum |
28 :inoremap <Char-0x103f> b | |
6195 | 29 :execute "normal a\u103f\<Esc>" |
5718 | 30 :" Inside of the range, maximum |
31 :inoremap <Char-0xf03f> c | |
6195 | 32 :execute "normal a\uf03f\<Esc>" |
5718 | 33 :" Outside of the range, maximum |
34 :inoremap <Char-0xf040> d | |
6195 | 35 :execute "normal a\uf040\<Esc>" |
5718 | 36 :" |
2610 | 37 :/^eof/+1,$w! test.out |
38 :qa! | |
39 ENDTEST | |
40 | |
41 eof |