diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-02-18 02:39:07 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-02-18 14:49:05 +0100 |
commit | 308ccb6f5e40ba1dbe4abfebc9df3399d7f17504 (patch) | |
tree | 4cf89d29a05f58b4e7b97489df8c66f31a18da47 /test/functional/ex_getln | |
parent | b49a74a1afe9740f18ca419dade45705da5bec46 (diff) | |
download | rneovim-308ccb6f5e40ba1dbe4abfebc9df3399d7f17504.tar.gz rneovim-308ccb6f5e40ba1dbe4abfebc9df3399d7f17504.tar.bz2 rneovim-308ccb6f5e40ba1dbe4abfebc9df3399d7f17504.zip |
cmdline: CTRL-R: <Space> instead of CR between lines.
^M isn't any more "correct" than space: the "technically correct"
interpretation is to execute the first line that is seen (and this is
what happens on middle-click paste in Vim). ^M is only intended to
defuse the newline, so that the user can review the command. We can do
that with a space instead, and then the command can be executed without
having to fix it up first.
Diffstat (limited to 'test/functional/ex_getln')
-rw-r--r-- | test/functional/ex_getln/history_spec.lua | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/test/functional/ex_getln/history_spec.lua b/test/functional/ex_getln/history_spec.lua deleted file mode 100644 index 20f9cf06a2..0000000000 --- a/test/functional/ex_getln/history_spec.lua +++ /dev/null @@ -1,36 +0,0 @@ -local helpers = require('test.functional.helpers')(after_each) -local clear, meths, funcs, eq = - helpers.clear, helpers.meths, helpers.funcs, helpers.eq - -describe('history support code', function() - before_each(clear) - - it('correctly clears start of the history', function() - -- Regression test: check absense of the memory leak when clearing start of - -- the history using ex_getln.c/clr_history(). - eq(1, funcs.histadd(':', 'foo')) - eq(1, funcs.histdel(':')) - eq('', funcs.histget(':', -1)) - end) - - it('correctly clears end of the history', function() - -- Regression test: check absense of the memory leak when clearing end of - -- the history using ex_getln.c/clr_history(). - meths.set_option('history', 1) - eq(1, funcs.histadd(':', 'foo')) - eq(1, funcs.histdel(':')) - eq('', funcs.histget(':', -1)) - end) - - it('correctly removes item from history', function() - -- Regression test: check that ex_getln.c/del_history_idx() correctly clears - -- history index after removing history entry. If it does not then deleting - -- history will result in a double free. - eq(1, funcs.histadd(':', 'foo')) - eq(1, funcs.histadd(':', 'bar')) - eq(1, funcs.histadd(':', 'baz')) - eq(1, funcs.histdel(':', -2)) - eq(1, funcs.histdel(':')) - eq('', funcs.histget(':', -1)) - end) -end) |