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
c5366491
Commit
c5366491
authored
Sep 16, 2010
by
louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the shlex fail. Colors are disabled on too long elements
parent
f638427a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/window.py
src/window.py
+5
-3
No files found.
src/window.py
View file @
c5366491
...
...
@@ -439,9 +439,11 @@ class TextWin(Win):
try
:
splitted
=
shlex
.
split
(
txt
)
except
ValueError
:
from
common
import
debug
debug
(
'SHLEX FAILED on: [%s]
\n
'
%
(
txt
,))
splitted
=
'shlex failed here. See debug'
.
split
()
# FIXME colors are disabled on too long words
txt
=
txt
.
replace
(
'"['
,
''
).
replace
(
']"'
,
''
)
\
.
replace
(
'"{'
,
''
).
replace
(
'}"'
,
''
)
\
.
replace
(
'"('
,
''
).
replace
(
')"'
,
''
)
splitted
=
txt
.
split
()
for
word
in
splitted
:
if
word
in
list
(
special_words
.
keys
()):
self
.
addstr
(
word
,
curses
.
color_pair
(
special_words
[
word
]))
...
...
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