[gnome-builder] libide/code: fix 0-1 in highlight engine
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] libide/code: fix 0-1 in highlight engine
- Date: Fri, 16 Sep 2022 03:39:24 +0000 (UTC)
commit cd918f0eac00b2fbbdd29a2f59262e1d04c32418
Author: Christian Hergert <chergert redhat com>
Date: Thu Sep 15 20:38:30 2022 -0700
libide/code: fix 0-1 in highlight engine
src/libide/code/ide-highlight-engine.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/code/ide-highlight-engine.c b/src/libide/code/ide-highlight-engine.c
index 56cb47e68..1b5666178 100644
--- a/src/libide/code/ide-highlight-engine.c
+++ b/src/libide/code/ide-highlight-engine.c
@@ -702,8 +702,8 @@ ide_highlight_engine__unbind_buffer_cb (IdeHighlightEngine *self,
gtk_source_scheduler_clear (&self->work_scheduled);
- length = _cjh_text_region_get_length (self->region);
- _cjh_text_region_remove (self->region, 0, length - 1);
+ if ((length = _cjh_text_region_get_length (self->region)))
+ _cjh_text_region_remove (self->region, 0, length - 1);
if (text_buffer != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]