summaryrefslogtreecommitdiff
path: root/ide-rename-symbol.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-rename-symbol.c
parentb146279b48f6a4f4bea8946cb3f0f1f5cc5a9985 (diff)
documentation
Diffstat (limited to 'ide-rename-symbol.c')
-rw-r--r--ide-rename-symbol.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/ide-rename-symbol.c b/ide-rename-symbol.c
index 01f3106..97c16a5 100644
--- a/ide-rename-symbol.c
+++ b/ide-rename-symbol.c
@@ -4,6 +4,11 @@ struct RenameSymbol {
LSPServerRequestID request_id;
};
+static void rename_symbol_clear(Ted *ted) {
+ RenameSymbol *rs = ted->rename_symbol;
+ ted_cancel_lsp_request(ted, &rs->request_id);
+}
+
void rename_symbol_quit(Ted *ted) {
rename_symbol_clear(ted);
free(ted->rename_symbol);
@@ -27,11 +32,6 @@ void rename_symbol_at_cursor(Ted *ted, TextBuffer *buffer, const char *new_name)
}
-void rename_symbol_clear(Ted *ted) {
- RenameSymbol *rs = ted->rename_symbol;
- ted_cancel_lsp_request(ted, &rs->request_id);
-}
-
void rename_symbol_frame(Ted *ted) {
RenameSymbol *rs = ted->rename_symbol;
if (rs->request_id.id) {