commit | fe38b494fff56cd9b2fcaeef26a8fd7b6557d69c | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Dec 11 21:34:23 2016 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Dec 11 21:34:23 2016 +0100 |
tree | 725bdd29a8b36d1a3fdf192b0a0480b17f0d05c8 | |
parent | 4c8980b717f73042f1d625ee255fa74eddb989ba [diff] [blame] |
patch 8.0.0133 Problem: "2;'(" causes ml_get errors in an empty buffer. (Dominique Pelle) Solution: Check the cursor line earlier.
diff --git a/src/testdir/test_cmdline.vim b/src/testdir/test_cmdline.vim index c48a811..96fee0b 100644 --- a/src/testdir/test_cmdline.vim +++ b/src/testdir/test_cmdline.vim
@@ -234,3 +234,10 @@ call feedkeys(":abc def\<S-Left>\<C-U>\<C-B>\"\<CR>", 'tx') call assert_equal('"def', @:) endfunc + +func Test_illegal_address() + new + 2;'( + 2;') + quit +endfunc