aboutsummaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
authormitermayer <mitermayer.reis@gmail.com>2019-09-14 05:27:16 +0000
committermitermayer <mitermayer.reis@gmail.com>2019-09-14 05:27:16 +0000
commit46fd3290d1c69fb394a79e5174e7c1aa69b885c0 (patch)
tree4a694e3f668534c6d0c5f1356c034755b8172fa6 /autoload
parentc73822ba57d432cfc073c6e3d485c0df97cd56ea (diff)
downloadvim-prettier-46fd3290d1c69fb394a79e5174e7c1aa69b885c0.tar.xz
issues/184-fixing-undo-step - fixing linting
Diffstat (limited to 'autoload')
-rw-r--r--autoload/prettier/utils/buffer.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/autoload/prettier/utils/buffer.vim b/autoload/prettier/utils/buffer.vim
index 821abda..7bc7ab1 100644
--- a/autoload/prettier/utils/buffer.vim
+++ b/autoload/prettier/utils/buffer.vim
@@ -10,8 +10,8 @@ function! prettier#utils#buffer#replace(lines, startSelection, endSelection) abo
" https://vim.fandom.com/wiki/Restore_the_cursor_position_after_undoing_text_change_made_by_a_script
" create a fake change entry and merge with undo stack prior to do formating
- normal ix
- normal x
+ normal! ix
+ normal! x
try | silent undojoin | catch | endtry
" delete all lines on the current buffer