Mercurial > vim
comparison src/testdir/test_execute_func.vim @ 26994:8d9506f3542e v8.2.4026
patch 8.2.4026: ml_get error with specific win_execute() command
Commit: https://github.com/vim/vim/commit/e664a327014f4aa8baf8549a34a4caab2f3116a3
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jan 7 14:08:03 2022 +0000
patch 8.2.4026: ml_get error with specific win_execute() command
Problem: ml_get error with specific win_execute() command. (Sean Dewar)
Solution: Check cursor and Visual area are OK.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 07 Jan 2022 15:15:03 +0100 |
parents | aa613a3084b9 |
children | 4c16acb2525f |
comparison
equal
deleted
inserted
replaced
26993:9a8859c832f0 | 26994:8d9506f3542e |
---|---|
151 | 151 |
152 func Test_win_execute_visual_redraw() | 152 func Test_win_execute_visual_redraw() |
153 call setline(1, ['a', 'b', 'c']) | 153 call setline(1, ['a', 'b', 'c']) |
154 new | 154 new |
155 wincmd p | 155 wincmd p |
156 " start Visual in current window, redraw in other window with fewer lines | |
156 call feedkeys("G\<C-V>", 'txn') | 157 call feedkeys("G\<C-V>", 'txn') |
157 call win_execute(winnr('#')->win_getid(), 'redraw') | 158 call win_execute(winnr('#')->win_getid(), 'redraw') |
159 call feedkeys("\<Esc>", 'txn') | |
160 bwipe! | |
161 bwipe! | |
162 | |
163 enew | |
164 new | |
165 call setline(1, ['a', 'b', 'c']) | |
166 let winid = win_getid() | |
167 wincmd p | |
168 " start Visual in current window, extend it in other window with more lines | |
169 call feedkeys("\<C-V>", 'txn') | |
170 call win_execute(winid, 'call feedkeys("G\<C-V>", ''txn'')') | |
171 redraw | |
172 | |
158 bwipe! | 173 bwipe! |
159 bwipe! | 174 bwipe! |
160 endfunc | 175 endfunc |
161 | 176 |
162 func Test_win_execute_on_startup() | 177 func Test_win_execute_on_startup() |