Skip to content

Commit 6c82bc8

Browse files
committed
Create new undo point for insert_item() and complete_common_string()
1 parent 479d44b commit 6c82bc8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

autoload/ddc/map.vim

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ function ddc#map#complete_common_string() abort
4040
return ''
4141
endif
4242

43+
" Create new undo point
44+
let &undolevels = &undolevels
45+
4346
let chars = ''
4447
" NOTE: Change backspace option to work <BS> correctly
4548
if mode() ==# 'i'
@@ -87,6 +90,9 @@ function ddc#map#insert_item(number) abort
8790
\ | endif
8891
endif
8992

93+
" Create new undo point
94+
let &undolevels = &undolevels
95+
9096
let chars = ''
9197
" NOTE: Change backspace option to work <BS> correctly
9298
if mode ==# 'i'

0 commit comments

Comments
 (0)