Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Polynomdivision
gajim
Commits
1a645064
Commit
1a645064
authored
15 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
Fix nick completion in MUC when it's not at the beginin of what is said. Fixes #5353
parent
8ec3ffcf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/groupchat_control.py
+3
-1
3 additions, 1 deletion
src/groupchat_control.py
with
3 additions
and
1 deletion
src/groupchat_control.py
+
3
−
1
View file @
1a645064
...
...
@@ -1833,12 +1833,14 @@ class GroupchatControl(ChatControlBase):
gc_refer_to_nick_char
=
gajim
.
config
.
get
(
'
gc_refer_to_nick_char
'
)
with_refer_to_nick_char
=
False
after_nick_len
=
1
# the space that is printed after we type [Tab]
# first part of this if : works fine even if refer_to_nick_char
if
gc_refer_to_nick_char
and
begin
.
endswith
(
gc_refer_to_nick_char
):
with_refer_to_nick_char
=
True
after_nick_len
=
len
(
gc_refer_to_nick_char
+
'
'
)
if
len
(
self
.
nick_hits
)
and
self
.
last_key_tabs
and
\
text
[:
-
len
(
gc_refer_to_nick_char
+
'
'
)
].
endswith
(
self
.
nick_hits
[
0
]):
text
[:
-
after_nick_len
].
endswith
(
self
.
nick_hits
[
0
]):
# we should cycle
# Previous nick in list may had a space inside, so we check text and
# not splitted_text and store it into 'begin' var
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment