Do not run ex commands unnecessarily via normal mode.

This commit is contained in:
Andy Stewart
2019-08-27 19:49:49 +01:00
parent 98ce886999
commit afb8e03222

View File

@@ -466,9 +466,9 @@ function! s:populate_hunk_preview_window(header, body)
let b:hunk_header = a:header let b:hunk_header = a:header
execute 'resize' height execute 'resize' height
execute "%delete_" %delete _
call setline(1, a:body) call setline(1, a:body)
normal! gg 1
endif endif
endfunction endfunction