comment and formatting
@@ -430,7 +430,8 @@ class InteractiveFind(Window):
self.replaceLine.setController(app.cu_editor.InteractiveFind)
self.zOrder.append(self.replaceLine)
self.setTextBuffer(app.text_buffer.TextBuffer())
- self.controller = app.cu_editor.InteractiveFind(host, self.findLine.textBuffer)
+ self.controller = app.cu_editor.InteractiveFind(host,
+ self.findLine.textBuffer)
def reshape(self, rows, cols, top, left):
self.findLine.reshape(1, cols, top, left)
@@ -492,7 +493,8 @@ class StatusLine(StaticWindow):
if len(statusLine):
rightSide += ' |'
if app.prefs.startup.get('showLogWindow'):
- rightSide += ' %s | %s |'%(tb.cursorGrammarName(), tb.selectionModeName())
+ rightSide += ' %s | %s |' % (tb.cursorGrammarName(),
+ tb.selectionModeName())
rightSide += ' %4d,%2d | %3d%%,%3d%%' % (
self.host.cursorRow+1, self.host.cursorCol + 1,
rowPercentage,
@@ -519,6 +521,7 @@ class TopInfo(StaticWindow):
if len(tb.lines):
lineCursor = self.host.scrollRow
line = ""
+ # Check for extremely small window.
if len(tb.lines) > lineCursor:
while len(line) == 0 and lineCursor > 0:
line = tb.lines[lineCursor]
@@ -820,5 +823,6 @@ class PaletteWindow(ActiveWindow):
rows = 16
for i in range(width):
for k in range(rows):
- self.addStr(k, i*5, ' %3d '%(i+k*width,), app.color.get(i+k*width))
+ self.addStr(k, i * 5, ' %3d ' % (i + k * width,),
+ app.color.get(i + k * width))
