Skip to content

Commit b06b8fb

Browse files
committed
Fix scrollbar not update correctly if no textLines at some point but convert index keep increasing
1 parent ffb235b commit b06b8fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

qgitc/textviewer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,10 @@ def _findInRange(self, pattern, low, high):
643643
return result
644644

645645
def _onConvertEvent(self):
646+
# wait for more text lines
647+
if self._inReading and self._convertIndex >= self.textLineCount():
648+
return
649+
646650
textLine = self.textLineAt(self._convertIndex)
647651
self._convertIndex += 1
648652

0 commit comments

Comments
 (0)