Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
poezio
poezio
Commits
14aec232
Commit
14aec232
authored
Jul 05, 2016
by
Link Mauve
Browse files
Rename a private method with an underscore.
parent
84ee9c7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
poezio/windows/inputs.py
poezio/windows/inputs.py
+3
-3
No files found.
poezio/windows/inputs.py
View file @
14aec232
...
...
@@ -456,7 +456,7 @@ class Input(Win):
"""
return
self
.
text
def
addstr_colored_lite
(
self
,
text
,
y
=
None
,
x
=
None
):
def
_
addstr_colored_lite
(
self
,
text
,
y
=
None
,
x
=
None
):
"""
Just like addstr_colored, with the single-char attributes
(
\x0E
to
\x19
instead of
\x19
+ attr). We do not use any }
...
...
@@ -490,7 +490,7 @@ class Input(Win):
"""
Refresh the line onscreen, but first, always adjust the
view_pos. Also, each FORMAT_CHAR+attr_char count only take
one screen column (this is done in addstr_colored_lite), we
one screen column (this is done in
_
addstr_colored_lite), we
have to do some special calculations to find the correct
length of text to display, and the position of the cursor.
"""
...
...
@@ -501,7 +501,7 @@ class Input(Win):
self
.
_win
.
attron
(
to_curses_attr
(
self
.
color
))
displayed_text
=
text
[
self
.
view_pos
:
self
.
view_pos
+
self
.
width
-
1
].
replace
(
'
\t
'
,
'
\x18
'
)
self
.
_win
.
attrset
(
0
)
self
.
addstr_colored_lite
(
displayed_text
)
self
.
_
addstr_colored_lite
(
displayed_text
)
# Fill the rest of the line with the input color
if
self
.
color
:
(
_
,
x
)
=
self
.
_win
.
getyx
()
...
...
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