Skip to content

Commit

Permalink
Create new undo point for insert_item() and complete_common_string()
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Dec 5, 2024
1 parent 479d44b commit 6c82bc8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions autoload/ddc/map.vim
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ function ddc#map#complete_common_string() abort
return ''
endif

" Create new undo point
let &undolevels = &undolevels

let chars = ''
" NOTE: Change backspace option to work <BS> correctly
if mode() ==# 'i'
Expand Down Expand Up @@ -87,6 +90,9 @@ function ddc#map#insert_item(number) abort
\ | endif
endif

" Create new undo point
let &undolevels = &undolevels

let chars = ''
" NOTE: Change backspace option to work <BS> correctly
if mode ==# 'i'
Expand Down

0 comments on commit 6c82bc8

Please sign in to comment.