X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Fwidechar%2Flib_ins_wch.c;h=4210579175c4f51d16f26472fb47da0e1923a52d;hp=58fa4d1ec23e0a5d2db05357cd3fc38260d3ed48;hb=79185cda09da0a0eef36ab0daabe3b739a2757cb;hpb=0d921802886d4e27990d2835a19aedcbf0f55e4b diff --git a/ncurses/widechar/lib_ins_wch.c b/ncurses/widechar/lib_ins_wch.c index 58fa4d1e..42105791 100644 --- a/ncurses/widechar/lib_ins_wch.c +++ b/ncurses/widechar/lib_ins_wch.c @@ -39,7 +39,7 @@ #include -MODULE_ID("$Id: lib_ins_wch.c,v 1.18 2016/02/20 22:01:09 tom Exp $") +MODULE_ID("$Id: lib_ins_wch.c,v 1.20 2016/03/13 00:42:34 tom Exp $") /* * Insert the given character, updating the current location to simplify @@ -73,7 +73,7 @@ _nc_insert_wch(WINDOW *win, const cchar_t *wch) SetWidecExt(temp1[cell], cell); } - win->_curx += cells; + win->_curx = (NCURSES_SIZE_T) (win->_curx + cells); } } return code;