diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-01-07 22:28:00 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-07 22:28:00 +0100 |
| commit | 3081f6098987d49bb6584be94b851642a4bc4355 (patch) | |
| tree | c4e766f48160635a5bc545841e39ad52064e22d0 /src/nvim/testdir | |
| parent | 0c42e0e8b1e24c2f6e2336ca955a1a5f8d3e0c5b (diff) | |
| parent | b5216a3e5b519b9946dcbe68742d27b345d68cd6 (diff) | |
| download | rneovim-3081f6098987d49bb6584be94b851642a4bc4355.tar.gz rneovim-3081f6098987d49bb6584be94b851642a4bc4355.tar.bz2 rneovim-3081f6098987d49bb6584be94b851642a4bc4355.zip | |
Merge #9466 from janlazo/vim-8.1.0696
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/runtest.vim | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/testdir/runtest.vim b/src/nvim/testdir/runtest.vim index 4fe7db135b..bfd6240f0c 100644 --- a/src/nvim/testdir/runtest.vim +++ b/src/nvim/testdir/runtest.vim @@ -26,7 +26,7 @@ " It will be called after each Test_ function. " " When debugging a test it can be useful to add messages to v:errors: -" call add(v:errors, "this happened") +" call add(v:errors, "this happened") " Check that the screen size is at least 24 x 80 characters. @@ -130,6 +130,10 @@ func RunTheTest(test) endtry endif + " In case 'insertmode' was set and something went wrong, make sure it is + " reset to avoid trouble with anything else. + set noinsertmode + if exists("*TearDown") try call TearDown() |