Permalink
Browse files

bugfix: readfile() without 'b' option don't read contents that doesn'…

…t have linebreak, so quickrun couldn't get such result like in Ruby `print 1`
  • Loading branch information...
1 parent 742d6c1 commit aae19def3667b904fc3a041e7a0a0b8b3d6f831d @ujihisa committed Sep 4, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 autoload/quickrun.vim
View
@@ -992,7 +992,7 @@ function! quickrun#_result(key, ...) " {{{2
let result = a:1
else
let resfile = runner._temp_result
- let result = filereadable(resfile) ? join(readfile(resfile), "\n") : ''
+ let result = filereadable(resfile) ? join(readfile(resfile, 'b'), "\n") : ''
endif
call remove(s:runners, a:key)
call runner.sweep()

0 comments on commit aae19de

Please sign in to comment.