Mercurial > vim
comparison src/testdir/test_popupwin.vim @ 17841:9513821d9d8f v8.1.1917
patch 8.1.1917: non-current window is not redrawn when moving popup
Commit: https://github.com/vim/vim/commit/356375fbf882535b5a5980d175c11abfa446a7cb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 24 14:46:29 2019 +0200
patch 8.1.1917: non-current window is not redrawn when moving popup
Problem: Non-current window is not redrawn when moving popup. (Ben Jackson)
Solution: Redraw all windows under a popup. (closes https://github.com/vim/vim/issues/4860)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 24 Aug 2019 15:00:04 +0200 |
parents | ce993ba17adb |
children | b6acc24df7de |
comparison
equal
deleted
inserted
replaced
17840:0408953949ba | 17841:9513821d9d8f |
---|---|
341 CheckScreendump | 341 CheckScreendump |
342 | 342 |
343 " create a popup that covers the command line | 343 " create a popup that covers the command line |
344 let lines =<< trim END | 344 let lines =<< trim END |
345 call setline(1, range(1, 20)) | 345 call setline(1, range(1, 20)) |
346 split | |
347 vsplit | |
348 $wincmd w | |
349 vsplit | |
350 1wincmd w | |
346 let winid = popup_create(['1111', '222222', '33333'], #{ | 351 let winid = popup_create(['1111', '222222', '33333'], #{ |
347 \ drag: 1, | 352 \ drag: 1, |
348 \ resize: 1, | 353 \ resize: 1, |
349 \ border: [], | 354 \ border: [], |
350 \ line: &lines - 4, | 355 \ line: &lines - 4, |
351 \ }) | 356 \ }) |
352 func Dragit() | 357 func Dragit() |
353 call feedkeys("\<F3>\<LeftMouse>\<F4>\<LeftDrag>\<LeftRelease>", "xt") | 358 call feedkeys("\<F3>\<LeftMouse>\<F4>\<LeftDrag>\<LeftRelease>", "xt") |
354 endfunc | 359 endfunc |
355 map <silent> <F3> :call test_setmouse(&lines - 4, &columns / 2)<CR> | 360 map <silent> <F3> :call test_setmouse(&lines - 4, &columns / 2)<CR> |
356 map <silent> <F4> :call test_setmouse(&lines - 8, &columns / 2)<CR> | 361 map <silent> <F4> :call test_setmouse(&lines - 8, &columns / 2 - 20)<CR> |
357 func Resize() | 362 func Resize() |
358 call feedkeys("\<F5>\<LeftMouse>\<F6>\<LeftDrag>\<LeftRelease>", "xt") | 363 call feedkeys("\<F5>\<LeftMouse>\<F6>\<LeftDrag>\<LeftRelease>", "xt") |
359 endfunc | 364 endfunc |
360 map <silent> <F5> :call test_setmouse(6, 41)<CR> | 365 map <silent> <F5> :call test_setmouse(6, 21)<CR> |
361 map <silent> <F6> :call test_setmouse(7, 45)<CR> | 366 map <silent> <F6> :call test_setmouse(7, 25)<CR> |
362 END | 367 END |
363 call writefile(lines, 'XtestPopupDrag') | 368 call writefile(lines, 'XtestPopupDrag') |
364 let buf = RunVimInTerminal('-S XtestPopupDrag', #{rows: 10}) | 369 let buf = RunVimInTerminal('-S XtestPopupDrag', #{rows: 10}) |
365 call VerifyScreenDump(buf, 'Test_popupwin_drag_01', {}) | 370 call VerifyScreenDump(buf, 'Test_popupwin_drag_01', {}) |
366 | 371 |