[gnome-builder] highlighter: allow NULL buffer
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] highlighter: allow NULL buffer
- Date: Sun, 3 May 2015 21:51:40 +0000 (UTC)
commit 45f74edc0152eb9ff3b91466c2510a18ccdf9769
Author: Christian Hergert <christian hergert me>
Date: Sun May 3 14:51:34 2015 -0700
highlighter: allow NULL buffer
libide/ide-highlight-engine.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/ide-highlight-engine.c b/libide/ide-highlight-engine.c
index a025abd..f834cad 100644
--- a/libide/ide-highlight-engine.c
+++ b/libide/ide-highlight-engine.c
@@ -528,7 +528,7 @@ ide_highlight_engine_set_buffer (IdeHighlightEngine *self,
IdeBuffer *buffer)
{
g_return_if_fail (IDE_IS_HIGHLIGHT_ENGINE (self));
- g_return_if_fail (IDE_IS_BUFFER (buffer));
+ g_return_if_fail (!buffer || IDE_IS_BUFFER (buffer));
if (self->buffer != buffer)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]