summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2013-02-05 15:33:32 +0100
committerhut <hut@lavabit.com>2013-02-05 15:33:32 +0100
commitb11e6ec0ea2376dfd56da65e4931e1cfa355937d (patch)
tree1b08cb4155027cd7d36fdd240ab7116316f87510
parent8e0e42a540d74c1f04d5497278099bce049a261d (diff)
downloadranger-b11e6ec0ea2376dfd56da65e4931e1cfa355937d.tar.gz
gui.ui: Flush stdout after setting tmux title
This fixes the bug that when using python3, the title is only set after
exiting ranger.
-rw-r--r--ranger/gui/ui.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ranger/gui/ui.py b/ranger/gui/ui.py
index 78dab9de..f01b7b17 100644
--- a/ranger/gui/ui.py
+++ b/ranger/gui/ui.py
@@ -88,6 +88,7 @@ class UI(DisplayableContainer):
 
 		if self.settings.update_tmux_title:
 			sys.stdout.write("\033kranger\033\\")
+			sys.stdout.flush()
 
 	def suspend(self):
 		"""Turn off curses"""
h=main&id=a4ef18b194a24710847be59554e51a1fd618228d'>^
6f5d7864 ^
c1a50c82 ^

6f5d7864 ^
c1a50c82 ^

6f5d7864 ^
c1a50c82 ^





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