refactor: fix completion updates
This commit is contained in:
parent
b314a4c8c0
commit
d4eb0d046c
4 changed files with 9 additions and 4 deletions
|
|
@ -1198,8 +1198,8 @@ const cmds = struct {
|
|||
var file_path_buf: [std.fs.max_path_bytes]u8 = undefined;
|
||||
file_path = project_manager.normalize_file_path(file_path, &file_path_buf);
|
||||
if (self.get_active_editor()) |editor| if (std.mem.eql(u8, file_path, editor.file_path orelse "")) {
|
||||
const have_completions = try editor.add_completion_done();
|
||||
if (have_completions) {
|
||||
const open_completions = try editor.add_completion_done();
|
||||
if (open_completions) {
|
||||
switch (tui.config().completion_style) {
|
||||
.palette => try tui.open_overlay(@import("mode/overlay/completion_palette.zig").Type),
|
||||
.dropdown => try tui.open_overlay(@import("mode/overlay/completion_dropdown.zig").Type),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue