From 1e822e88f2e605e32cc524c1947f7e0dc1eec80f Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 26 Mar 2024 23:08:43 +0800 Subject: [PATCH] src/Builder4/Editor.bjs src/Builder4/Editor.vala --- src/Builder4/Editor.bjs | 2 +- src/Builder4/Editor.vala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Builder4/Editor.bjs b/src/Builder4/Editor.bjs index 772bf5abe..54bcd879a 100644 --- a/src/Builder4/Editor.bjs +++ b/src/Builder4/Editor.bjs @@ -63,7 +63,7 @@ "xtype" : "Label", "| void setHelp" : [ "(Lsp.Hover? help) {", - "\tif (help == null) {", + "\tif (help == null || help.contents == null) {", "\t\tthis.el.set_text(\"\");", "\t\treturn;", "\t}", diff --git a/src/Builder4/Editor.vala b/src/Builder4/Editor.vala index ceb559413..e9433d7b1 100644 --- a/src/Builder4/Editor.vala +++ b/src/Builder4/Editor.vala @@ -545,7 +545,7 @@ public class Editor : Object // user defined functions public void setHelp (Lsp.Hover? help) { - if (help == null) { + if (help == null || help.contents == null) { this.el.set_text(""); return; } -- 2.39.2