about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--TODO2
-rw-r--r--code/runcontext.rb6
-rw-r--r--data/apps.rb2
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',
cs/ranger/commit/doc/HACKING?id=7bf5f9672ee79489553506831b7cab54a8609077'>7bf5f967 ^
f8f6f7f9 ^




7bf5f967 ^
f8f6f7f9 ^




f8f6f7f9 ^

29028631 ^

a2853ab6 ^
3ee05c16 ^

f8f6f7f9 ^
f8f6f7f9 ^







f8f6f7f9 ^




7bf5f967 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79