diff options
author | hut <hut@lavabit.com> | 2009-07-20 23:13:00 +0200 |
---|---|---|
committer | hut <hut@lavabit.com> | 2009-07-20 23:13:00 +0200 |
commit | ce16309481e03604199470dea8b5aaef9dd0e282 (patch) | |
tree | 3a1afd75fde0c591d01993021e4c33542da4376c | |
parent | 1acf2a20139db6dd16b00d3a8ac67e473d0a3713 (diff) | |
download | ranger-ce16309481e03604199470dea8b5aaef9dd0e282.tar.gz |
fixed #26 (bad behaviour when rdr'ing vim)
-rw-r--r-- | TODO | 2 | ||||
-rw-r--r-- | code/runcontext.rb | 6 | ||||
-rw-r--r-- | data/apps.rb | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/TODO b/TODO index 3a4b75e8..ebe9a157 100644 --- a/TODO +++ b/TODO @@ -18,7 +18,7 @@ Critical Issues ( ) #15 09/07/18 it's way too slow in large directories redesign process of getting data from file system (X) #17 09/07/19 shell behaves strangely sometimes when run with s key - ( ) #26 09/07/20 bad behaviour when rdr'ing vim + (X) #26 09/07/20 bad behaviour when rdr'ing vim Minor Issues 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(//) diff --git a/data/apps.rb b/data/apps.rb index 37d79c77..6a906e9d 100644 --- a/data/apps.rb +++ b/data/apps.rb @@ -100,6 +100,8 @@ module Application end def vi(files) + files.dont_run_in_background + commands = [ 'map h ZZ', 'map q h', |