mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
patch 8.2.4233: crash when recording and using Select mode
Problem: Crash when recording and using Select mode. Solution: When deleting the last recorded character check there is something to delete.
This commit is contained in:
@ -739,6 +739,15 @@ func Test_record_in_insert_mode()
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
func Test_record_in_select_mode()
|
||||
new
|
||||
call setline(1, 'text')
|
||||
sil norm q00
|
||||
sil norm q
|
||||
call assert_equal('0ext', getline(1))
|
||||
bwipe!
|
||||
endfunc
|
||||
|
||||
" Make sure that y_append is correctly reset
|
||||
" and the previous register is working as expected
|
||||
func Test_register_y_append_reset()
|
||||
|
Reference in New Issue
Block a user