From 46fd3290d1c69fb394a79e5174e7c1aa69b885c0 Mon Sep 17 00:00:00 2001 From: mitermayer Date: Sat, 14 Sep 2019 05:27:16 +0000 Subject: issues/184-fixing-undo-step - fixing linting --- autoload/prettier/utils/buffer.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'autoload/prettier/utils/buffer.vim') 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 -- cgit v1.3