Avoid zstr call in ncurses addutf8str
This commit is contained in:
parent
762f60f9fd
commit
7176685690
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user