Kaydet (Commit) 1d429f24 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Backport:

Properly fix SF bug #507298 (Gregor Lingl): shellpython2.2 -Qnew smart
indent error

Use // where int division is intended.
üst 9eda652c
...@@ -466,7 +466,7 @@ class EditorWindow: ...@@ -466,7 +466,7 @@ class EditorWindow:
top, bot = self.getwindowlines() top, bot = self.getwindowlines()
lineno = self.getlineno(mark) lineno = self.getlineno(mark)
height = bot - top height = bot - top
newtop = max(1, lineno - height/2) newtop = max(1, lineno - height//2)
text.yview(float(newtop)) text.yview(float(newtop))
def getwindowlines(self): def getwindowlines(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment