summaryrefslogtreecommitdiff
path: root/ide-hover.c
diff options
context:
space:
mode:
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;
}