mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 02:31:45 +02:00
Merge branch 'zero-length-title' of https://github.com/jamessan/kitty
This commit is contained in:
@@ -310,7 +310,7 @@ dispatch_osc(Screen *screen, PyObject DUMP_UNUSED *dump_callback) {
|
|||||||
}
|
}
|
||||||
if (i > 0) {
|
if (i > 0) {
|
||||||
code = utoi(screen->parser_buf, i);
|
code = utoi(screen->parser_buf, i);
|
||||||
if (i < limit - 1 && screen->parser_buf[i] == ';') i++;
|
if (i < limit && screen->parser_buf[i] == ';') i++;
|
||||||
}
|
}
|
||||||
PyObject *string = PyUnicode_FromKindAndData(PyUnicode_4BYTE_KIND, screen->parser_buf + i, limit - i);
|
PyObject *string = PyUnicode_FromKindAndData(PyUnicode_4BYTE_KIND, screen->parser_buf + i, limit - i);
|
||||||
if (string != NULL) {
|
if (string != NULL) {
|
||||||
|
|||||||
@@ -182,6 +182,9 @@ class TestParser(BaseTest):
|
|||||||
c.clear()
|
c.clear()
|
||||||
pb('\033]2;;;;\x07', ('set_title', ';;;'))
|
pb('\033]2;;;;\x07', ('set_title', ';;;'))
|
||||||
self.ae(c.titlebuf, ';;;')
|
self.ae(c.titlebuf, ';;;')
|
||||||
|
c.clear()
|
||||||
|
pb('\033]2;\x07', ('set_title', ''))
|
||||||
|
self.ae(c.titlebuf, '')
|
||||||
pb('\033]110\x07', ('set_dynamic_color', 110, ''))
|
pb('\033]110\x07', ('set_dynamic_color', 110, ''))
|
||||||
self.ae(c.colorbuf, '')
|
self.ae(c.colorbuf, '')
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user