From: zeertzjq Date: Tue, 22 Aug 2023 19:22:24 +0000 (+0200) Subject: patch 9.0.1779: Need more state() tests X-Git-Tag: v9.0.1779 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8dabccd295271104ad5af0abc48e283d644cff59;p=thirdparty%2Fvim.git patch 9.0.1779: Need more state() tests Problem: Need more state() tests Solution: Add a few more tests for operater pending mode and register yank command closes: #12883 Signed-off-by: Christian Brabandt Co-authored-by: author --- diff --git a/src/testdir/test_functions.vim b/src/testdir/test_functions.vim index a500b734b2..0eda5de380 100644 --- a/src/testdir/test_functions.vim +++ b/src/testdir/test_functions.vim @@ -2901,6 +2901,20 @@ func Test_state() call term_sendkeys(buf, getstate) call WaitForAssert({-> assert_match('state: mSc; mode: n', term_getline(buf, 6))}, 1000) + " A operator is pending + call term_sendkeys(buf, ":call RunTimer()\y") + call TermWait(buf, 25) + call term_sendkeys(buf, "y") + call term_sendkeys(buf, getstate) + call WaitForAssert({-> assert_match('state: oSc; mode: n', term_getline(buf, 6))}, 1000) + + " A register was specified + call term_sendkeys(buf, ":call RunTimer()\\"r") + call TermWait(buf, 25) + call term_sendkeys(buf, "yy") + call term_sendkeys(buf, getstate) + call WaitForAssert({-> assert_match('state: oSc; mode: n', term_getline(buf, 6))}, 1000) + " Insert mode completion (bit slower on Mac) call term_sendkeys(buf, ":call RunTimer()\Got\") call TermWait(buf, 25) diff --git a/src/version.c b/src/version.c index 50e2187c4c..3ca3167cb9 100644 --- a/src/version.c +++ b/src/version.c @@ -699,6 +699,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1779, /**/ 1778, /**/