Skip to content

Commit

Permalink
Bug fix: don't try to autosave if in command mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thaer Khawaja committed Jan 31, 2017
1 parent d977b7b commit 60314fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/workspace.vim
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function! s:UntrailSpaces()
endfunction

function! s:Autosave(timed)
if index(g:workspace_autosave_ignore, &filetype) != -1 || &readonly
if index(g:workspace_autosave_ignore, &filetype) != -1 || &readonly || mode() == 'c'
return
endif

Expand Down

0 comments on commit 60314fd

Please sign in to comment.