From 015cf9eca3da88edb3cc8cb8eac899c57605d365 Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Wed, 3 Aug 2022 10:36:54 -0500 Subject: [PATCH] Fixed small typo --- src/extra/autocompletionUsers/completion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extra/autocompletionUsers/completion.py b/src/extra/autocompletionUsers/completion.py index 1c6750a3..088edbc3 100644 --- a/src/extra/autocompletionUsers/completion.py +++ b/src/extra/autocompletionUsers/completion.py @@ -29,8 +29,8 @@ class autocompletionUsers(object): :param mode: this controls how the dialog will behave. Possible values are 'tweet' and 'dm'. In tweet mode, the matching pattern will be @user (@ is required), while in 'dm' mode the matching pattern will be anything written in the text control. :type mode: str """ - position = self.window.text.GetInsertionPoint() if mode == "tweet": + position = self.window.text.GetInsertionPoint() text = self.window.text.GetValue() text = text[:position] try: @@ -60,7 +60,7 @@ class autocompletionUsers(object): users = self.db.get_users(pattern) if len(users) > 0: menu.append_options(users) - self.window.PopupMenu(menu, self.window.text.GetPosition()) + self.window.PopupMenu(menu, self.window.cb.GetPosition()) menu.destroy() else: output.speak(_(u"There are no results in your users database"))