Skip to content

Commit f013609

Browse files
committed
hotfix: completer not working with command
1 parent 976ced1 commit f013609

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

AgentCrew/modules/gui/components/keyboard_handler.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ def _setup_shortcuts(self):
3636
self.stop_shortcut.activated.connect(self.chat_window.stop_message_stream)
3737

3838
def _handle_completer_accept(self, completer, event):
39-
current_index = self.chat_window.file_completer.popup().currentIndex()
39+
current_index = completer.popup().currentIndex()
4040
if current_index.isValid():
41-
completion = self.chat_window.file_completer.completionModel().data(
41+
completion = completer.completionModel().data(
4242
current_index, Qt.ItemDataRole.DisplayRole
4343
)
4444
self.chat_window.input_components.insert_completion(completion)
45-
self.chat_window.file_completer.popup().hide()
45+
completer.popup().hide()
4646
event.accept()
4747
return
4848

0 commit comments

Comments
 (0)