Mercurial > vim
comparison src/testdir/test_cmdline.vim @ 18084:f4b51934d4f8 v8.1.2037
patch 8.1.2037: can call win_gotoid() in cmdline window
Commit: https://github.com/vim/vim/commit/a046b37c22bcabdea5f0fd6d21ca4bd0aa4c768e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 15 17:26:07 2019 +0200
patch 8.1.2037: can call win_gotoid() in cmdline window
Problem: Can call win_gotoid() in cmdline window.
Solution: Disallow switching windows. (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/4940)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 15 Sep 2019 17:30:06 +0200 |
parents | 5a0d5f8e1778 |
children | b0b37bd807ba |
comparison
equal
deleted
inserted
replaced
18083:940067fc8f0c | 18084:f4b51934d4f8 |
---|---|
732 call feedkeys(":\"テキストエディタ\<home>\<right>\<right>ab\<right>\<insert>cd\<enter>", 'xt') | 732 call feedkeys(":\"テキストエディタ\<home>\<right>\<right>ab\<right>\<insert>cd\<enter>", 'xt') |
733 call assert_equal('"テabキcdエディタ', @:) | 733 call assert_equal('"テabキcdエディタ', @:) |
734 | 734 |
735 let &encoding = encoding_save | 735 let &encoding = encoding_save |
736 endfunc | 736 endfunc |
737 | |
738 func Test_cmdwin_bug() | |
739 let winid = win_getid() | |
740 sp | |
741 try | |
742 call feedkeys("q::call win_gotoid(" .. winid .. ")\<CR>:q\<CR>", 'x!') | |
743 catch /^Vim\%((\a\+)\)\=:E11/ | |
744 endtry | |
745 bw! | |
746 endfunc |