From ce16309481e03604199470dea8b5aaef9dd0e282 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 20 Jul 2009 23:13:00 +0200 Subject: fixed #26 (bad behaviour when rdr'ing vim) --- code/runcontext.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'code') diff --git a/code/runcontext.rb b/code/runcontext.rb index aceccb99..882a10ef 100644 --- a/code/runcontext.rb +++ b/code/runcontext.rb @@ -126,6 +126,12 @@ class RunContext return x end + def dont_run_in_background + if @detach and !@new_term + self.flags += ['D'] + end + end + def base_flags=(x) newflags = (x.is_a? Array) ? x : x.split(//) -- cgit 1.4.1-2-gfad0