aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_mapping.vim
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-06-07 20:36:22 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-06-08 21:13:33 -0400
commit3bcbf802cea28e5f3632b7a226e46d6b8efa3668 (patch)
tree82413af681b5910796cec2f29fc6a11ce2d1e7c4 /src/nvim/testdir/test_mapping.vim
parentaaece7849259185b116081641890764b6d459376 (diff)
downloadrneovim-3bcbf802cea28e5f3632b7a226e46d6b8efa3668.tar.gz
rneovim-3bcbf802cea28e5f3632b7a226e46d6b8efa3668.tar.bz2
rneovim-3bcbf802cea28e5f3632b7a226e46d6b8efa3668.zip
vim-patch:8.0.0533: abbreviation doesn't work after backspacing newline
Problem: Abbreviation doesn't work after backspacing newline. (Hkonrk) Solution: Set the insert start column. (closes vim/vim#1609) https://github.com/vim/vim/commit/878c263a489b7e211eda31fa13a3d5ad9e120554
Diffstat (limited to 'src/nvim/testdir/test_mapping.vim')
-rw-r--r--src/nvim/testdir/test_mapping.vim13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_mapping.vim b/src/nvim/testdir/test_mapping.vim
index 0a198763bb..f4fe1c2705 100644
--- a/src/nvim/testdir/test_mapping.vim
+++ b/src/nvim/testdir/test_mapping.vim
@@ -104,7 +104,7 @@ func Test_map_langmap()
imap a c
call feedkeys("Go\<C-R>a\<Esc>", "xt")
call assert_equal('bbbb', getline('$'))
-
+
" langmap should not apply in Command-line mode
set langmap=+{ nolangremap
call feedkeys(":call append(line('$'), '+')\<CR>", "xt")
@@ -161,6 +161,17 @@ func Test_map_meta_quotes()
iunmap <M-">
endfunc
+func Test_abbr_after_line_join()
+ new
+ abbr foo bar
+ set backspace=indent,eol,start
+ exe "normal o\<BS>foo "
+ call assert_equal("bar ", getline(1))
+ bwipe!
+ unabbr foo
+ set backspace&
+endfunc
+
func Test_map_timeout()
nnoremap aaaa :let got_aaaa = 1<CR>
nnoremap bb :let got_bb = 1<CR>