summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-28 12:08:36 -0500
committerpommicket <pommicket@gmail.com>2022-12-28 12:08:36 -0500
commit92e8db6a364b8d1c38f3c15b8e040f6fb7c564f0 (patch)
tree36339bd5be0ef47a4bc1e6383602d74af8fab496 /main.c
parent11df4f10197d67e5b61898bd98cdfccc1159dd26 (diff)
nice signature help (still needs work)
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index ffc8610..4e06699 100644
--- a/main.c
+++ b/main.c
@@ -787,7 +787,7 @@ int main(int argc, char **argv) {
}
}
- if (ted->signature_help.open) {
+ if (signature_help_is_open(ted)) {
arr_foreach_ptr(lsp->signature_help_retrigger_chars, char32_t, c) {
if (*c == last_char) {
signature_help = true;
@@ -1010,9 +1010,9 @@ int main(int argc, char **argv) {
if (ted->nodes_used[0]) {
float y1 = padding;
node_frame(ted, node, rect4(x1, y1, x2, y));
- if (ted->autocomplete.open) {
+ if (ted->autocomplete.open)
autocomplete_frame(ted);
- }
+ signature_help_frame(ted);
} else {
autocomplete_close(ted);
text_utf8_anchored(font, "Press Ctrl+O to open a file or Ctrl+N to create a new one.",