summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-07-05 23:22:44 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-07-06 00:25:12 +0100
commit14aec23206e5d1e2befdc662b4c67ad1f66360a9 (patch)
tree39894052d2e69636a75460807703ca95b3100605
parent84ee9c7afb7aaf5fc72f3ea2058de512cd1a4f69 (diff)
downloadpoezio-14aec23206e5d1e2befdc662b4c67ad1f66360a9.tar.gz
poezio-14aec23206e5d1e2befdc662b4c67ad1f66360a9.tar.bz2
poezio-14aec23206e5d1e2befdc662b4c67ad1f66360a9.tar.xz
poezio-14aec23206e5d1e2befdc662b4c67ad1f66360a9.zip
Rename a private method with an underscore.
-rw-r--r--poezio/windows/inputs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/poezio/windows/inputs.py b/poezio/windows/inputs.py
index 53925f3b..18d005d7 100644
--- a/poezio/windows/inputs.py
+++ b/poezio/windows/inputs.py
@@ -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()