Mercurial > vim
comparison src/testdir/test_terminal.vim @ 18321:2ffe3309958c v8.1.2155
patch 8.1.2155: in a terminal window 'cursorlineopt' does not work properly
Commit: https://github.com/vim/vim/commit/a3817730c0a38ed6371b38b6db2e08547ecc674d
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Oct 16 16:31:44 2019 +0200
patch 8.1.2155: in a terminal window 'cursorlineopt' does not work properly
Problem: In a terminal window 'cursorlineopt' does not work properly.
Solution: Check the 'cursorlineopt' value. (closes https://github.com/vim/vim/issues/5055)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 16 Oct 2019 16:45:03 +0200 |
parents | f6dcf7eabd26 |
children | 0e9d3a77c624 |
comparison
equal
deleted
inserted
replaced
18320:4bea563fe277 | 18321:2ffe3309958c |
---|---|
1904 call feedkeys("A", 'xt') | 1904 call feedkeys("A", 'xt') |
1905 call WaitForAssert({-> assert_equal('running', term_getstatus(bnr))}) | 1905 call WaitForAssert({-> assert_equal('running', term_getstatus(bnr))}) |
1906 bwipe! | 1906 bwipe! |
1907 endfunc | 1907 endfunc |
1908 | 1908 |
1909 func Test_terminal_normal_mode() | |
1910 CheckRunVimInTerminal | |
1911 | |
1912 " Run Vim in a terminal and open a terminal window to run Vim in. | |
1913 let lines =<< trim END | |
1914 call setline(1, range(11111, 11122)) | |
1915 3 | |
1916 END | |
1917 call writefile(lines, 'XtermNormal') | |
1918 let buf = RunVimInTerminal('-S XtermNormal', {'rows': 8}) | |
1919 call term_wait(buf) | |
1920 | |
1921 call term_sendkeys(buf, "\<C-W>N") | |
1922 call term_sendkeys(buf, ":set number cursorline culopt=both\r") | |
1923 call VerifyScreenDump(buf, 'Test_terminal_normal_1', {}) | |
1924 | |
1925 call term_sendkeys(buf, ":set culopt=number\r") | |
1926 call VerifyScreenDump(buf, 'Test_terminal_normal_2', {}) | |
1927 | |
1928 call term_sendkeys(buf, ":set culopt=line\r") | |
1929 call VerifyScreenDump(buf, 'Test_terminal_normal_3', {}) | |
1930 | |
1931 call term_sendkeys(buf, "a:q!\<CR>:q\<CR>:q\<CR>") | |
1932 call StopVimInTerminal(buf) | |
1933 call delete('XtermNormal') | |
1934 endfunc | |
1935 | |
1909 func Test_terminal_hidden_and_close() | 1936 func Test_terminal_hidden_and_close() |
1910 CheckUnix | 1937 CheckUnix |
1911 | 1938 |
1912 call assert_equal(1, winnr('$')) | 1939 call assert_equal(1, winnr('$')) |
1913 term ++hidden ++close ls | 1940 term ++hidden ++close ls |