summaryrefslogtreecommitdiff
path: root/src/dged/syntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dged/syntax.c')
-rw-r--r--src/dged/syntax.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dged/syntax.c b/src/dged/syntax.c
index 403cabe..e7828a5 100644
--- a/src/dged/syntax.c
+++ b/src/dged/syntax.c
@@ -279,6 +279,10 @@ static void update_parser(struct buffer *buffer, void *userdata,
return;
}
+ if (buffer_is_empty(buffer)) {
+ return;
+ }
+
// take results and set text properties
// TODO: can reuse the cursor
TSQueryCursor *cursor = ts_query_cursor_new();