fix: do not cancel completion if the view size changes
Only if the view position changes.
This commit is contained in:
parent
e26d86eca3
commit
ee6095ecee
1 changed files with 2 additions and 1 deletions
|
|
@ -135,7 +135,8 @@ fn get_query_text(self: *Type, cursor: ed.Cursor, allocator: std.mem.Allocator)
|
|||
fn maybe_cancel(self: *Type, cursor: Buffer.Cursor) bool {
|
||||
if (self.value.cursor.row != cursor.row or
|
||||
self.value.cursor.col > cursor.col or
|
||||
!self.value.view.eql(self.value.editor.view))
|
||||
self.value.view.row != self.value.editor.view.row or
|
||||
self.value.view.col != self.value.editor.view.col)
|
||||
{
|
||||
tp.self_pid().send(.{ "cmd", "palette_menu_cancel" }) catch |e| self.logger.err(module_name, e);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue