Avoid zstr call in ncurses addutf8str

This commit is contained in:
Maxime Coste 2015-04-03 13:10:46 +01:00
parent 762f60f9fd
commit 7176685690

View File

@ -305,7 +305,7 @@ using Utf8Policy = utf8::InvalidPolicy::Pass;
using Utf8Iterator = utf8::iterator<const char*, Utf8Policy>; using Utf8Iterator = utf8::iterator<const char*, Utf8Policy>;
void addutf8str(WINDOW* win, Utf8Iterator begin, Utf8Iterator end) void addutf8str(WINDOW* win, Utf8Iterator begin, Utf8Iterator end)
{ {
waddstr(win, StringView(begin.base(), end.base()).zstr()); waddnstr(win, begin.base(), end.base() - begin.base());
} }
static CharCoord window_size(WINDOW* win) static CharCoord window_size(WINDOW* win)