Skip to content

Commit 85ebd56

Browse files
committed
gotest: discard changes to existing buffer in load_fixture()
1 parent ee267fd commit 85ebd56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/gotest.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fun! gotest#load_fixture(path) abort
5858

5959
call mkdir(fnamemodify(l:full_path, ':h'), 'p')
6060
call go#util#Chdir(l:dir . '/src')
61-
silent exe 'noautocmd e ' . a:path
61+
silent exe 'noautocmd e! ' . a:path
6262
silent exe printf('read %s/test-fixtures/%s', g:vim_go_root, a:path)
6363
silent noautocmd w!
6464
if go#util#has_job()

0 commit comments

Comments
 (0)