From be22869e4e5b915d80186928ff22cca4a6f2309c Mon Sep 17 00:00:00 2001 From: ssh0 Date: Mon, 22 Jun 2015 22:38:40 +0900 Subject: shrink height for tmux's top status bar (commented part) --- ranger/ext/img_display.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py index b61c253f..d0a371f4 100644 --- a/ranger/ext/img_display.py +++ b/ranger/ext/img_display.py @@ -80,6 +80,7 @@ class W3MImageDisplayer(ImageDisplayer): # y = int((start_y + 1) * fonth), # (for tmux top status bar) w = int((width + 0.4) * fontw), h = height * fonth + 1) + # h = (height - 1) * fonth + 1) # (for tmux top status bar) self.process.stdin.write(cmd) self.process.stdin.flush() @@ -97,6 +98,8 @@ class W3MImageDisplayer(ImageDisplayer): max_width_pixels = max_width * fontw max_height_pixels = max_height * fonth - 2 + # (for tmux top status bar) + # max_height_pixels = (max_height - 1) * fonth - 2 # get image size cmd = "5;{}\n".format(path) -- cgit 1.4.1-2-gfad0