- if (mvwin_wchstr(txtwin, txt_y, txt_x, text) != ERR) {
- mvwadd_wchstr(strwin, 2, 5, text);
- }
+ if (mvwin_wchstr(txtwin, txt_y, txt_x, text) != ERR) {
+ (void) mvwadd_wchstr(strwin, 2, 5, text);
+ }
+
+ if (mvwin_wchnstr(txtwin, txt_y, txt_x, text, limit) != ERR) {
+ (void) mvwadd_wchstr(strwin, 3, 5, text);
+ }
+ } else {
+ move(txt_y, txt_x);
+ if (in_wchstr(text) != ERR) {
+ (void) mvwadd_wchstr(strwin, 0, 5, text);
+ }
+
+ move(txt_y, txt_x);
+ if (in_wchnstr(text, limit) != ERR) {
+ (void) mvwadd_wchstr(strwin, 1, 5, text);
+ }
+
+ if (mvin_wchstr(txt_y, txt_x, text) != ERR) {
+ (void) mvwadd_wchstr(strwin, 2, 5, text);
+ }