comparison src/testdir/test_mapping.vim @ 13933:bea665293ea0 v8.0.1837

patch 8.0.1837: one character cmdline abbreviation not triggered after '<,'> commit https://github.com/vim/vim/commit/5e3423d192bfa502c6704f731fa2ec6821f9a2f0 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 13 18:36:27 2018 +0200 patch 8.0.1837: one character cmdline abbreviation not triggered after '<,'> Problem: One character cmdline abbreviation not triggered after '<,'>. Solution: Skip over the special range. (Christian Brabandt, closes https://github.com/vim/vim/issues/2320)
author Christian Brabandt <cb@256bit.org>
date Sun, 13 May 2018 18:45:05 +0200
parents a27d380b257f
children 54457fc4af0b
comparison
equal deleted inserted replaced
13932:7f6bca9f4b78 13933:bea665293ea0
212 call feedkeys("GA~~7\<cr>\<esc>", 'xt') 212 call feedkeys("GA~~7\<cr>\<esc>", 'xt')
213 call assert_equal(['~~~~~~~', ''], getline(1,'$')) 213 call assert_equal(['~~~~~~~', ''], getline(1,'$'))
214 delfunc Eatchar 214 delfunc Eatchar
215 bw! 215 bw!
216 endfunc 216 endfunc
217
218 func Test_cabbr_visual_mode()
219 cabbr s su
220 call feedkeys(":s \<c-B>\"\<CR>", 'itx')
221 call assert_equal('"su ', getreg(':'))
222 call feedkeys(":'<,'>s \<c-B>\"\<CR>", 'itx')
223 let expected = '"'. "'<,'>su "
224 call assert_equal(expected, getreg(':'))
225 call feedkeys(": '<,'>s \<c-B>\"\<CR>", 'itx')
226 let expected = '" '. "'<,'>su "
227 call assert_equal(expected, getreg(':'))
228 call feedkeys(":'a,'bs \<c-B>\"\<CR>", 'itx')
229 let expected = '"'. "'a,'bsu "
230 call assert_equal(expected, getreg(':'))
231 cunabbr s
232 endfunc