Skip to content

Commit 72c3676

Browse files
authored
Merge pull request #123 from kankaristo/patch-1
Fix `z -I` in ranger_zlua.py
2 parents c90279b + 9dc5875 commit 72c3676

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

ranger_zlua.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,10 @@ def execute (self):
6969
p = self.fm.execute_command(cmd + ' 2>&1 | less +G', universal_newlines=True)
7070
stdout, stderr = p.communicate()
7171
else:
72-
if mode == '-I':
73-
os.environ['_ZL_FZF_HEIGHT'] = '0'
74-
path = subprocess.check_output([PATH_LUA, PATH_ZLUA, '--cd'] + args)
75-
self.fm.execute_console('redraw_window')
76-
else:
77-
p = self.fm.execute_command(cmd, universal_newlines=True, stdout=subprocess.PIPE)
78-
stdout, stderr = p.communicate()
79-
path = stdout.rstrip('\n')
72+
p = self.fm.execute_command(cmd, universal_newlines=True, stdout=subprocess.PIPE)
73+
stdout, stderr = p.communicate()
74+
path = stdout.rstrip('\n')
75+
self.fm.execute_console('redraw_window')
8076
if path and os.path.exists(path):
8177
self.fm.cd(path)
8278
else:

0 commit comments

Comments
 (0)