From 3da2e57f2f10b95d136da88e2a42bfd90d40b0f4 Mon Sep 17 00:00:00 2001 From: hut Date: Wed, 5 Oct 2011 13:31:21 +0200 Subject: widgets.console: Fixed drawing of wide characters --- ranger/gui/widgets/console.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/ranger/gui/widgets/console.py b/ranger/gui/widgets/console.py index d9141df8..2a7a34d3 100644 --- a/ranger/gui/widgets/console.py +++ b/ranger/gui/widgets/console.py @@ -24,7 +24,7 @@ from collections import deque from . import Widget from ranger.ext.direction import Direction -from ranger.ext.widestring import uwid +from ranger.ext.widestring import uwid, WideString from ranger.container import History from ranger.container.history import HistoryEmptyException import ranger @@ -75,13 +75,10 @@ class Console(Widget): def draw(self): self.win.erase() self.addstr(0, 0, self.prompt) - if self.fm.py3: - overflow = -self.wid + len(self.prompt) + len(self.line) + 1 - else: - overflow = -self.wid + len(self.prompt) + uwid(self.line) + 1 + line = WideString(self.line) + overflow = -self.wid + len(self.prompt) + len(line) + 1 if overflow > 0: - #XXX: cut uft-char-wise, consider width - self.addstr(self.line[overflow:]) + self.addstr(str(line[overflow:])) else: self.addstr(self.line) -- cgit 1.4.1-2-gfad0 ript/triangle/babel.config.js'>log blame commit diff stats
path: root/javascript/triangle/babel.config.js
blob: 5f1ec6060c23564f4fa6f792765e8a906834a068 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15