Mercurial > vim
comparison src/testdir/test_popupwin.vim @ 22057:f64a16f5bff0 v8.2.1578
patch 8.2.1578: Vim9: popup_clear() does not take "true" as argument
Commit: https://github.com/vim/vim/commit/62f93f4ec9db1deca088bab7783a35306e2ed4cb
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Sep 2 22:33:24 2020 +0200
patch 8.2.1578: Vim9: popup_clear() does not take "true" as argument
Problem: Vim9: popup_clear() does not take "true" as argument.
Solution: Use tv_get_bool(). (closes https://github.com/vim/vim/issues/6826)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 02 Sep 2020 22:45:25 +0200 |
parents | e0af4660dfc7 |
children | 0716b3299872 |
comparison
equal
deleted
inserted
replaced
22056:de723418d015 | 22057:f64a16f5bff0 |
---|---|
2557 call assert_equal(origwin, win_getid()) | 2557 call assert_equal(origwin, win_getid()) |
2558 endfunc | 2558 endfunc |
2559 | 2559 |
2560 func Test_popupwin_close_prevwin() | 2560 func Test_popupwin_close_prevwin() |
2561 CheckFeature terminal | 2561 CheckFeature terminal |
2562 | 2562 call Popupwin_close_prevwin() |
2563 call assert_equal(1, winnr('$')) | 2563 endfunc |
2564 | |
2565 def Popupwin_close_prevwin() | |
2566 assert_equal(1, winnr('$')) | |
2564 split | 2567 split |
2565 wincmd b | 2568 wincmd b |
2566 call assert_equal(2, winnr()) | 2569 assert_equal(2, winnr()) |
2567 let buf = term_start(&shell, #{hidden: 1}) | 2570 let buf = term_start(&shell, #{hidden: 1}) |
2568 call popup_create(buf, {}) | 2571 popup_create(buf, {}) |
2569 call TermWait(buf, 100) | 2572 TermWait(buf, 100) |
2570 call popup_clear(1) | 2573 popup_clear(true) |
2571 call assert_equal(2, winnr()) | 2574 assert_equal(2, winnr()) |
2572 | 2575 |
2573 quit | 2576 quit |
2574 exe 'bwipe! ' .. buf | 2577 exe 'bwipe! ' .. buf |
2575 endfunc | 2578 enddef |
2576 | 2579 |
2577 func Test_popupwin_with_buffer_and_filter() | 2580 func Test_popupwin_with_buffer_and_filter() |
2578 new Xwithfilter | 2581 new Xwithfilter |
2579 call setline(1, range(100)) | 2582 call setline(1, range(100)) |
2580 let bufnr = bufnr() | 2583 let bufnr = bufnr() |