From 709db67b3439f350162d03bfc89403a6a32bc9d6 Mon Sep 17 00:00:00 2001 From: Andrew Radev Date: Tue, 23 Aug 2016 13:13:19 +0300 Subject: [PATCH] Fix some unpack bugs --- autoload/ember_tools/unpack.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/autoload/ember_tools/unpack.vim b/autoload/ember_tools/unpack.vim index d397251..56190ed 100644 --- a/autoload/ember_tools/unpack.vim +++ b/autoload/ember_tools/unpack.vim @@ -29,7 +29,7 @@ function! ember_tools#unpack#Run() call setline('.', unpacking) call winrestview(saved_view) - silent! call repeat#set(":call ember_tools#unpack#Run(0)\") + silent! call repeat#set(":call ember_tools#unpack#Run()\") return endif @@ -91,11 +91,10 @@ function! ember_tools#unpack#Reverse() while search(variable_pattern, search_flags) > 0 if synIDattr(synID(line('.'), col('.'), 1), 'name') !~ 'String\|Comment' exe 'normal! i'.prefix.'.' - " go back to the search - call search(variable_pattern) endif let search_flags = "W" endwhile call winrestview(saved_view) + silent! call repeat#set(":call ember_tools#unpack#Reverse()\") endfunction