parent
06da096503
commit
0c015d7126
|
@ -590,7 +590,8 @@ class Application(object):
|
|||
|
||||
s_offset = max(x - token.x, 0)
|
||||
x_offset = max(token.x - x, 0)
|
||||
assert x_offset < slot.width, '%d < %d' % (x_offset, slot.width)
|
||||
#assert x_offset < slot.width, '%d < %d' % (x_offset, slot.width)
|
||||
assert x_offset <= slot.width, '%d <= %d' % (x_offset, slot.width)
|
||||
|
||||
c = self._get_token_color(w, token)
|
||||
s = token.string[s_offset:]
|
||||
|
|
|
@ -177,6 +177,11 @@ class Perl(mode2.Fundamental):
|
|||
self.add_action_and_bindings(PerlWhichFunction(), ('C-c w',))
|
||||
self.add_action_and_bindings(PerlListFunctions(), ('C-c W',))
|
||||
|
||||
# visual tag matching
|
||||
self.add_bindings('close-paren', (')'))
|
||||
self.add_bindings('close-bracket', (']'))
|
||||
self.add_bindings('close-brace', ('}'))
|
||||
|
||||
self.default_color = color.build('default', 'default')
|
||||
|
||||
self.colors = {
|
||||
|
|
10
window2.py
10
window2.py
|
@ -222,14 +222,12 @@ class Window(object):
|
|||
self.cursor = Point(0, cursor.y)
|
||||
self.assure_visible_cursor()
|
||||
def previous_line(self):
|
||||
cursor = self.logical_cursor()
|
||||
if cursor.y > 0:
|
||||
self.cursor = Point(cursor.x, cursor.y - 1)
|
||||
if self.cursor.y > 0:
|
||||
self.cursor = Point(self.cursor.x, self.cursor.y - 1)
|
||||
self.assure_visible_cursor()
|
||||
def next_line(self):
|
||||
cursor = self.logical_cursor()
|
||||
if cursor.y < len(self.buffer.lines) - 1:
|
||||
self.cursor = Point(cursor.x, cursor.y + 1)
|
||||
if self.cursor.y < len(self.buffer.lines) - 1:
|
||||
self.cursor = Point(self.cursor.x, self.cursor.y + 1)
|
||||
self.assure_visible_cursor()
|
||||
|
||||
# word handling
|
||||
|
|
Loading…
Reference in New Issue