diff options
author | Christian Persch <chpe@src.gnome.org> | 2021-03-16 17:55:47 +0100 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2021-03-16 17:55:47 +0100 |
commit | b333d66879963637099dc0bc5a702f50f34da67e (patch) | |
tree | c9dacabd35d1a7832763cbfc8b2f042d96df6f11 | |
parent | 9a76d6cc6b90dd17f8a3e87777707570053e9461 (diff) | |
download | vte-b333d66879963637099dc0bc5a702f50f34da67e.tar.gz |
widget: a11y: Remove assert
This assert is getting hit more frequently now, e.g. by #340.
Replace it with an if branch.
Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/340
-rw-r--r-- | src/vteaccess.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vteaccess.cc b/src/vteaccess.cc index c67afc40..8cf6feee 100644 --- a/src/vteaccess.cc +++ b/src/vteaccess.cc @@ -627,7 +627,8 @@ _vte_terminal_accessible_text_scrolled(VteTerminalAccessible* accessible, if (len > i) { /* snapshot_text always contains a trailing '\n', * insertion happens in front of it: bug 657960 */ - g_assert(i >= 1); + // g_assert(i >= 1); + if (i > 0) emit_text_changed_insert(G_OBJECT(accessible), priv->snapshot_text->str, i - 1, |