Mercurial > vim
comparison src/testdir/test_popupwin.vim @ 20561:18c52f380193 v8.2.0834
patch 8.2.0834: :drop command in terminal popup causes problems
Commit: https://github.com/vim/vim/commit/3f65c66df95445ef84f98de007c9b70ce23f54a0
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed May 27 23:15:16 2020 +0200
patch 8.2.0834: :drop command in terminal popup causes problems
Problem: :drop command in terminal popup causes problems.
Solution: Check for using a popup window. (closes https://github.com/vim/vim/issues/6151)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 27 May 2020 23:30:03 +0200 |
parents | 3fe45aa3bbc5 |
children | 0e4cf74642a3 |
comparison
equal
deleted
inserted
replaced
20560:4cb09af7ab7d | 20561:18c52f380193 |
---|---|
2443 " Cannot enter Terminal-Normal mode. (TODO: but it works...) | 2443 " Cannot enter Terminal-Normal mode. (TODO: but it works...) |
2444 call feedkeys("xxx\<C-W>N", 'xt') | 2444 call feedkeys("xxx\<C-W>N", 'xt') |
2445 call assert_fails('call feedkeys("gf", "xt")', 'E863:') | 2445 call assert_fails('call feedkeys("gf", "xt")', 'E863:') |
2446 call feedkeys("a\<C-U>", 'xt') | 2446 call feedkeys("a\<C-U>", 'xt') |
2447 | 2447 |
2448 " Cannot escape from terminal window | |
2449 call assert_fails('tab drop xxx', 'E863:') | |
2450 | |
2448 " Cannot open a second one. | 2451 " Cannot open a second one. |
2449 let termbuf2 = term_start(&shell, #{hidden: 1}) | 2452 let termbuf2 = term_start(&shell, #{hidden: 1}) |
2450 call assert_fails('call popup_create(termbuf2, #{})', 'E861:') | 2453 call assert_fails('call popup_create(termbuf2, #{})', 'E861:') |
2451 call term_sendkeys(termbuf2, "exit\<CR>") | 2454 call term_sendkeys(termbuf2, "exit\<CR>") |
2452 | 2455 |