Skip to content

Commit

Permalink
Fix some unpack bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRadev committed Aug 23, 2016
1 parent 25412e1 commit 709db67
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions autoload/ember_tools/unpack.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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)\<cr>")
silent! call repeat#set(":call ember_tools#unpack#Run()\<cr>")
return
endif

Expand Down Expand Up @@ -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()\<cr>")
endfunction

0 comments on commit 709db67

Please sign in to comment.