mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-16 21:45:03 +02:00
API to set text in Line efficiently
This commit is contained in:
@@ -8,12 +8,3 @@ from unittest import TestCase
|
||||
class BaseTest(TestCase):
|
||||
|
||||
ae = TestCase.assertEqual
|
||||
|
||||
|
||||
def set_text_in_line(line, text, offset=0):
|
||||
pos = offset
|
||||
for ch in text:
|
||||
line.set_char(pos, ch)
|
||||
pos += 1
|
||||
if pos >= len(line):
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user