src/Builder4/Editor.bjs wip_alan_T8120_limit_hover_updates
authorAlan <alan@roojs.com>
Wed, 27 Mar 2024 10:05:30 +0000 (18:05 +0800)
committerAlan <alan@roojs.com>
Wed, 27 Mar 2024 10:05:30 +0000 (18:05 +0800)
src/Builder4/Editor.vala

src/Builder4/Editor.bjs
src/Builder4/Editor.vala

index ca520d6..1c1a75b 100644 (file)
             "\t\tls.append(sym);",
             "\t}",
             "\t// if syms updated is empty, but we already have one..",
-            "\tif (_this.navliststore.el.get_n_items() > 0 && ls.get_n_items < 1) {",
+            "\tif (_this.navliststore.el.get_n_items() > 0 && ls.get_n_items() < 1) {",
             "\t\treturn;",
             "\t}",
             "\tLsp.DocumentSymbol.copyList(ls, _this.navliststore.el);",
index 97acb03..fe1fb9f 100644 (file)
@@ -2056,7 +2056,7 @@ public class Editor : Object
                                ls.append(sym);
                        }
                        // if syms updated is empty, but we already have one..
-                       if (_this.navliststore.el.get_n_items() > 0 && ls.get_n_items < 1) {
+                       if (_this.navliststore.el.get_n_items() > 0 && ls.get_n_items() < 1) {
                                return;
                        }
                        Lsp.DocumentSymbol.copyList(ls, _this.navliststore.el);