Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
poezio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
204
Issues
204
List
Boards
Labels
Service Desk
Milestones
Merge Requests
9
Merge Requests
9
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poezio
poezio
Commits
fe9a7ca7
Commit
fe9a7ca7
authored
Feb 16, 2010
by
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed #1174
parent
baaf9102
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
src/window.py
src/window.py
+9
-2
No files found.
src/window.py
View file @
fe9a7ca7
...
...
@@ -353,7 +353,7 @@ class Input(Win):
def
auto_completion
(
self
,
user_list
):
if
self
.
pos
!=
len
(
self
.
text
)
or
len
(
self
.
text
)
==
0
:
return
# we don't complete if curso
s
is not at the end of line
return
# we don't complete if curso
r
is not at the end of line
completion_type
=
config
.
get
(
'completion'
,
'normal'
)
if
completion_type
==
'shell'
:
self
.
shell_completion
(
user_list
)
...
...
@@ -365,7 +365,10 @@ class Input(Win):
self
.
last_key_tab
=
False
def
normal_completion
(
self
,
user_list
):
after
=
config
.
get
(
'after_completion'
,
','
)
+
" "
if
" "
in
self
.
text
:
after
=
" "
# don't put the "," if it's not the begining of the sentence
else
:
after
=
config
.
get
(
'after_completion'
,
','
)
+
" "
(
y
,
x
)
=
self
.
win
.
getyx
()
if
not
self
.
last_key_tab
:
# begin is the begining of the nick we want to complete
...
...
@@ -395,6 +398,10 @@ class Input(Win):
self
.
refresh
()
def
shell_completion
(
self
,
user_list
):
if
" "
in
self
.
text
:
after
=
" "
# don't put the "," if it's not the begining of the sentence
else
:
after
=
config
.
get
(
'after_completion'
,
','
)
+
" "
after
=
config
.
get
(
'after_completion'
,
','
)
+
" "
(
y
,
x
)
=
self
.
win
.
getyx
()
begin
=
self
.
text
.
split
()[
-
1
].
encode
(
'utf-8'
).
lower
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment