Permalink
Browse files

Don’t taint unsaved unhiddable user files.

Also don’t silence the errors

--HG--
branch : no-enter-on-auto-install
  • Loading branch information...
1 parent 11f1e06 commit 7cba316eedf3e8b2c98487d26d491bdbe0e2baf6 @ZyX-I ZyX-I committed Aug 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 autoload/vam.vim
View
@@ -389,7 +389,7 @@ endfun
" looks like an error but is not. Catches users attention. Logs to :messages
fun! vam#Log(s, ...)
if s:c.log_to_buf
- silent! exec 'e '.fnameescape(s:c.vam_log_buffer_name)
+ silent execute 'split' fnameescape(s:c.vam_log_buffer_name)
cal append('$', split(a:s, "\n", 1))
else
let hi = a:0 > 0 ? a:1 : 'WarningMsg'

0 comments on commit 7cba316

Please sign in to comment.