summaryrefslogtreecommitdiff
path: root/ide-rename-symbol.c
diff options
context:
space:
mode:
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) {