diff options
author | Josh Rahm <rahm@google.com> | 2022-08-22 15:53:46 -0600 |
---|---|---|
committer | Josh Rahm <rahm@google.com> | 2022-08-22 15:53:46 -0600 |
commit | 52ce04a002a882da19bb2c78d1fd8eb4825d669d (patch) | |
tree | a39812ccb42dac36b6a251de9f9810e395bba3d9 /test/functional/editor | |
parent | 179d3ed87b17988f5fe00d8b99f2611a28212be7 (diff) | |
parent | baaaa1f2b3b6ae3a989d1362a27e55dc7b0b148a (diff) | |
download | rneovim-52ce04a002a882da19bb2c78d1fd8eb4825d669d.tar.gz rneovim-52ce04a002a882da19bb2c78d1fd8eb4825d669d.tar.bz2 rneovim-52ce04a002a882da19bb2c78d1fd8eb4825d669d.zip |
Merge remote-tracking branch 'upstream/master' into floattitle
Diffstat (limited to 'test/functional/editor')
-rw-r--r-- | test/functional/editor/mode_insert_spec.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/editor/mode_insert_spec.lua b/test/functional/editor/mode_insert_spec.lua index e3d3cdbd85..cd51a65be3 100644 --- a/test/functional/editor/mode_insert_spec.lua +++ b/test/functional/editor/mode_insert_spec.lua @@ -6,12 +6,20 @@ local expect = helpers.expect local command = helpers.command local eq = helpers.eq local eval = helpers.eval +local curbuf_contents = helpers.curbuf_contents describe('insert-mode', function() before_each(function() clear() end) + it('indents only once after "!" keys #12894', function() + command('let counter = []') + command('set indentexpr=len(add(counter,0))') + feed('i<C-F>x') + eq(' x', curbuf_contents()) + end) + it('CTRL-@', function() -- Inserts last-inserted text, leaves insert-mode. insert('hello') |