Mercurial > vim
comparison src/testdir/test_popupwin.vim @ 23072:4b398a229b0b v8.2.2082
patch 8.2.2082: Vim9: can still use the depricated #{} dict syntax
Commit: https://github.com/vim/vim/commit/e0de171ecd2ff7acd56deda2cf81f0d13a69c803
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Dec 2 17:36:54 2020 +0100
patch 8.2.2082: Vim9: can still use the depricated #{} dict syntax
Problem: Vim9: can still use the depricated #{} dict syntax.
Solution: Remove support for #{} in Vim9 script. (closes https://github.com/vim/vim/issues/7406, closes https://github.com/vim/vim/issues/7405)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 02 Dec 2020 17:45:05 +0100 |
parents | 139573353c6d |
children | 713912dd96cd |
comparison
equal
deleted
inserted
replaced
23071:20dac5998fa6 | 23072:4b398a229b0b |
---|---|
2170 return v:true | 2170 return v:true |
2171 endif | 2171 endif |
2172 endfunc | 2172 endfunc |
2173 | 2173 |
2174 def CreatePopup(text: list<string>) | 2174 def CreatePopup(text: list<string>) |
2175 popup_create(text, #{ | 2175 popup_create(text, { |
2176 \ minwidth: 30, | 2176 \ minwidth: 30, |
2177 \ maxwidth: 30, | 2177 \ maxwidth: 30, |
2178 \ minheight: 4, | 2178 \ minheight: 4, |
2179 \ maxheight: 4, | 2179 \ maxheight: 4, |
2180 \ firstline: 1, | 2180 \ firstline: 1, |
2715 def Popupwin_close_prevwin() | 2715 def Popupwin_close_prevwin() |
2716 assert_equal(1, winnr('$')) | 2716 assert_equal(1, winnr('$')) |
2717 split | 2717 split |
2718 wincmd b | 2718 wincmd b |
2719 assert_equal(2, winnr()) | 2719 assert_equal(2, winnr()) |
2720 var buf = term_start(&shell, #{hidden: 1}) | 2720 var buf = term_start(&shell, {hidden: 1}) |
2721 popup_create(buf, {}) | 2721 popup_create(buf, {}) |
2722 TermWait(buf, 100) | 2722 TermWait(buf, 100) |
2723 popup_clear(true) | 2723 popup_clear(true) |
2724 assert_equal(2, winnr()) | 2724 assert_equal(2, winnr()) |
2725 | 2725 |