summaryrefslogtreecommitdiff
path: root/ide-hover.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-07 07:39:58 -0400
committerpommicket <pommicket@gmail.com>2023-08-07 07:39:58 -0400
commit3839577f15d9fa8e460e3042d94970fb8b5dc12f (patch)
tree685969ef0750868ed60d0dc051f3c519ce824c13 /ide-hover.c
parentb146279b48f6a4f4bea8946cb3f0f1f5cc5a9985 (diff)
documentation
Diffstat (limited to 'ide-hover.c')
-rw-r--r--ide-hover.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ide-hover.c b/ide-hover.c
index af70544..28bc1af 100644
--- a/ide-hover.c
+++ b/ide-hover.c
@@ -21,13 +21,7 @@ void hover_init(Ted *ted) {
ted->hover = calloc(1, sizeof *ted->hover);
}
-void hover_quit(Ted *ted) {
- hover_close(ted);
- free(ted->hover);
- ted->hover = NULL;
-}
-
-void hover_close(Ted *ted) {
+static void hover_close(Ted *ted) {
Hover *hover = ted->hover;
hover->open = false;
free(hover->text);
@@ -35,6 +29,12 @@ void hover_close(Ted *ted) {
ted_cancel_lsp_request(ted, &hover->last_request);
}
+void hover_quit(Ted *ted) {
+ hover_close(ted);
+ free(ted->hover);
+ ted->hover = NULL;
+}
+
void hover_reset_timer(Ted *ted) {
ted->hover->time = 0.0;
}