summaryrefslogtreecommitdiff
blob: 71403cd7162eb72c0b063078da35cf6f168b22c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
http://cvs.fedoraproject.org/viewvc/rpms/driconf/devel/

--- a/driconf_simpleui.py
+++ b/driconf_simpleui.py
@@ -266,8 +266,8 @@
                     j = i
                     break
                 i = i - 1
-            if i < chars/3:
-                i = chars
+            else:
+                i = j = chars
             head, tail = head + tail[:i] + '\n', tail[j:]
     return head