diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2024-06-10 18:16:34 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-06-10 18:16:34 +0200 |
commit | d603e956095b8bc79526476138fe80b1e0be9b8d (patch) | |
tree | 668f0b03abbb7d03d105953f7e530f74d4dcab69 /src/testdir/test_terminal3.vim | |
parent | dfc21db0b0f9c61d66aeefc02ec4c06ec645bd09 (diff) |
patch 9.1.0473: term_start() does not clear vertical modifierv9.1.0473
Problem: term_start() does not clear vertical modifier
Solution: Clear the flag after splitting the window
(Yegappan Lakshmanan)
closes: #14953
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'src/testdir/test_terminal3.vim')
-rw-r--r-- | src/testdir/test_terminal3.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/testdir/test_terminal3.vim b/src/testdir/test_terminal3.vim index 848e3fa473..3cca1b05cb 100644 --- a/src/testdir/test_terminal3.vim +++ b/src/testdir/test_terminal3.vim @@ -10,6 +10,8 @@ source screendump.vim source mouse.vim source term_util.vim +import './vim9.vim' as v9 + let $PROMPT_COMMAND='' func Test_terminal_altscreen() @@ -959,4 +961,18 @@ func Test_terminal_vt420() call StopVimInTerminal(buf) endfunc +" Test for using 'vertical' with term_start(). If a following term_start(), +" doesn't have the 'vertical' attribute, then it should be split horizontally. +func Test_terminal_vertical() + let lines =<< trim END + call term_start("NONE", {'vertical': 1}) + call term_start("NONE") + VAR layout = winlayout() + call assert_equal('row', layout[0], string(layout)) + call assert_equal('col', layout[1][0][0], string(layout)) + :%bw! + END + call v9.CheckLegacyAndVim9Success(lines) +endfunc + " vim: shiftwidth=2 sts=2 expandtab |