parent
025d142a3d
commit
bd202de7bc
1
BUGS
1
BUGS
|
@ -21,6 +21,7 @@ to see anything).
|
||||||
sometimes searching seems to save the wrong cursor position, or not overwrite
|
sometimes searching seems to save the wrong cursor position, or not overwrite
|
||||||
the previously used one, and you end up finding matches *before* your search
|
the previously used one, and you end up finding matches *before* your search
|
||||||
started.
|
started.
|
||||||
|
* possibly fixed (2007/09/26)
|
||||||
|
|
||||||
2006/07/04:
|
2006/07/04:
|
||||||
undo/redo is mostly fixed, but there are still occasionally problems, which seem
|
undo/redo is mostly fixed, but there are still occasionally problems, which seem
|
||||||
|
|
|
@ -496,7 +496,7 @@ class Application(object):
|
||||||
# full screen drawer
|
# full screen drawer
|
||||||
def draw(self, err=""):
|
def draw(self, err=""):
|
||||||
try:
|
try:
|
||||||
self.draw_slots() #XYZ
|
self.draw_slots()
|
||||||
self.draw_input_bar()
|
self.draw_input_bar()
|
||||||
self.draw_cursor()
|
self.draw_cursor()
|
||||||
self.win.noutrefresh()
|
self.win.noutrefresh()
|
||||||
|
@ -754,24 +754,32 @@ class Application(object):
|
||||||
self.win.addch(self.y-1, self.x-1, ' ')
|
self.win.addch(self.y-1, self.x-1, ' ')
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def _get_mini_lines(self, s):
|
||||||
|
i = self.x - 1
|
||||||
|
return [s[:i]]
|
||||||
|
|
||||||
|
lines = [s[:i]]
|
||||||
|
while i < len(s):
|
||||||
|
lines.append(s[i:self.x - 1 + i])
|
||||||
|
i += self.x - 1
|
||||||
|
return lines
|
||||||
|
|
||||||
def draw_error(self):
|
def draw_error(self):
|
||||||
l = self.x - 1
|
lines = self._get_mini_lines(self.error_string)
|
||||||
s1 = self.error_string
|
for i in range(0, len(lines)):
|
||||||
s2 = util.cleanse(util.padtrunc(s1, l))
|
line = util.pad(lines[i], self.x - 1)
|
||||||
#self.win.addnstr(self.y-1, 0, s2, l)
|
self.win.addstr(self.y - len(lines) + i, 0, line)
|
||||||
self.win.addstr(self.y-1, 0, s2)
|
|
||||||
def draw_mini_buffer(self):
|
def draw_mini_buffer(self):
|
||||||
l = self.x - 1
|
|
||||||
b = self.mini_buffer
|
b = self.mini_buffer
|
||||||
s1 = self.mini_prompt + b.lines[0]
|
lines = self._get_mini_lines(self.mini_prompt + b.lines[0])
|
||||||
s2 = util.padtrunc(s1, l)
|
for i in range(0, len(lines)):
|
||||||
#self.win.addnstr(self.y-1, 0, s2, l)
|
line = util.pad(lines[i], self.x - 1)
|
||||||
self.win.addstr(self.y-1, 0, s2)
|
self.win.addstr(self.y - len(lines) + i, 0, line)
|
||||||
|
|
||||||
def draw_nothing(self):
|
def draw_nothing(self):
|
||||||
l = self.x - 1
|
self.win.addstr(self.y-1, 0, util.pad('', self.x - 1))
|
||||||
#self.win.addnstr(self.y-1, 0, util.pad('', l), l)
|
|
||||||
self.win.addstr(self.y-1, 0, util.pad('', l))
|
|
||||||
|
|
||||||
def open_aes_file(path, nl, name=None):
|
def open_aes_file(path, nl, name=None):
|
||||||
if os.path.isfile(path) or not os.path.exists(path):
|
if os.path.isfile(path) or not os.path.exists(path):
|
||||||
|
@ -864,4 +872,3 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
# ok, now run our app
|
# ok, now run our app
|
||||||
run(buffers, opts.goto, opts.mode)
|
run(buffers, opts.goto, opts.mode)
|
||||||
|
|
Loading…
Reference in New Issue