about summary refs log tree commit diff stats
path: root/code
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2009-07-20 23:13:00 +0200
committerhut <hut@lavabit.com>2009-07-20 23:13:00 +0200
commitce16309481e03604199470dea8b5aaef9dd0e282 (patch)
tree3a1afd75fde0c591d01993021e4c33542da4376c /code
parent1acf2a20139db6dd16b00d3a8ac67e473d0a3713 (diff)
downloadranger-ce16309481e03604199470dea8b5aaef9dd0e282.tar.gz
fixed #26 (bad behaviour when rdr'ing vim)
Diffstat (limited to 'code')
-rw-r--r--code/runcontext.rb6
1 files changed, 6 insertions, 0 deletions
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(//)