summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2015-09-12 23:02:39 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2015-09-12 23:02:39 +0200
commit61ba262a0f030de5e874c0b2d53c7fca8be51c5e (patch)
tree4ef4e24a34594bdf98b07c899a52fe849509009e /src
parent7e8156566aa1f7857fb9616842d866f96134f481 (diff)
window: revert to the old operator<<(char) as new causes problems
Diffstat (limited to 'src')
-rw-r--r--src/window.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index f67c02a8..c50e435d 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -1338,8 +1338,9 @@ Window &Window::operator<<(const char *s)
Window &Window::operator<<(char c)
{
- // waddchr doesn't display non-ascii multibyte characters properly
- waddnstr(m_window, &c, 1);
+ // the following causes problems: https://github.com/arybczak/ncmpcpp/issues/21
+ // waddnstr(m_window, &c, 1);
+ wprintw(m_window, "%c", c);
return *this;
}