aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-06-04 02:06:32 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-06-17 14:50:53 +0200
commit9c2099d5850a6a434f7269913d316d57da1362e2 (patch)
tree01dd9cc3e83a177d092995226a4541dfe2cb08e4 /test
parent3cc350696576f26fe1e978ef78125a1a6c7410ab (diff)
downloadrneovim-9c2099d5850a6a434f7269913d316d57da1362e2.tar.gz
rneovim-9c2099d5850a6a434f7269913d316d57da1362e2.tar.bz2
rneovim-9c2099d5850a6a434f7269913d316d57da1362e2.zip
Ex mode: use getexline() instead of getexmodeline()
This changes Ex mode (Q, -e) to work like Vim's "improved Ex mode" (gQ, -E). That brings some small behavior differences, but should not impact most Ex scripts (unless, for example, they depend on mappings being disabled--but that can be solved for -e by skipping user config). Before this change: * the screen test hangs. After this change: * Q acts like gQ. * -e/-es differs from -E/-Es only in its treatment of stdin. This moves towards potentially removing getexmodeline(). (HINT: That does NOT mean "removing Ex mode", it means removing the Vi-compatible Ex mode, which differs from Vim's "improved Ex mode" only in some minor details (e.g. mappings are disabled).) ref #1089 :-)~
Diffstat (limited to 'test')
-rw-r--r--test/functional/core/startup_spec.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua
index f323056179..c20ac668c4 100644
--- a/test/functional/core/startup_spec.lua
+++ b/test/functional/core/startup_spec.lua
@@ -123,9 +123,19 @@ describe('startup', function()
end)
it('-e/-E interactive #7679', function()
- clear('-E')
+ clear('-e')
local screen = Screen.new(25, 3)
screen:attach()
+ feed("put ='from -e'<CR>")
+ screen:expect([[
+ :put ='from -e' |
+ from -e |
+ :^ |
+ ]])
+
+ clear('-E')
+ screen = Screen.new(25, 3)
+ screen:attach()
feed("put ='from -E'<CR>")
screen:expect([[
:put ='from -E' |