From 74c32a957d8533f746c960e8f726670e3d6b1baf Mon Sep 17 00:00:00 2001 From: pommicket Date: Sun, 13 Aug 2023 22:10:18 -0300 Subject: fix find --- find.c | 2 +- lsp-write.c | 3 +-- main.c | 1 - 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/find.c b/find.c index 92015bc..8cf2e04 100644 --- a/find.c +++ b/find.c @@ -568,7 +568,7 @@ static void find_edit_notify(void *context, TextBuffer *buffer, const EditInfo * find_research_lines(ted, line, line); } - } else if (buffer == ted->line_buffer) { + } else if (buffer == ted->find_buffer) { find_redo_search(ted); buffer_scroll_to_cursor(buffer); } diff --git a/lsp-write.c b/lsp-write.c index 20a72ca..85c5781 100644 --- a/lsp-write.c +++ b/lsp-write.c @@ -458,8 +458,7 @@ void write_request(LSP *lsp, LSPRequest *request) { write_key_obj_start(o, "workspace"); write_key_bool(o, "workspaceFolders", true); write_key_obj_start(o, "workspaceEdit"); - // currently unsupported -- see ide-rename-symbol.c - // write_key_bool(o, "documentChanges", true); + write_key_bool(o, "documentChanges", true); write_key_arr_start(o, "resourceOperations"); write_arr_elem_string(o, "create"); write_arr_elem_string(o, "rename"); diff --git a/main.c b/main.c index de4657f..f319dc6 100644 --- a/main.c +++ b/main.c @@ -1,6 +1,5 @@ /* TODO: -- fix find - fix ask-reload menu (clicking "no" will probably do nothing) - public Node API - public Selector/FileSelector API -- cgit v1.2.3