Skip to content

Commit

Permalink
no, STDOUT and STDERR, not $stdout and $stderr
Browse files Browse the repository at this point in the history
Dang, I guess $stdout and $stderr no longer point to STDOUT and STDERR
in vim. My mistake.
  • Loading branch information
guns committed Jan 5, 2011
1 parent 8f57f67 commit b17afe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/preview.vim
Expand Up @@ -94,7 +94,7 @@ class Preview
app = get_apps_by_type(app_type).find{|app| system("which #{app.split()[0]} &> /dev/null")}
if app
pid = fork do
[$stdout, $stderr].each { |io| io.reopen("/dev/null", "w") }
[STDOUT, STDERR].each { |io| io.reopen("/dev/null", "w") }
exec app, path
end
Process.detach pid # avoid zombies
Expand Down

0 comments on commit b17afe4

Please sign in to comment.