fix an assert, update another copyright year, and add a few more of DB's
tweaks to fix a few minor bugs with UTF-8 display at the statusbar
prompt
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2213 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
diff --git a/src/winio.c b/src/winio.c
index 4cc6c77..c2fd6ef 100644
--- a/src/winio.c
+++ b/src/winio.c
@@ -2329,9 +2329,9 @@
void nanoget_repaint(const char *buf, const char *inputbuf, size_t x)
{
size_t x_real = strnlenpt(inputbuf, x);
- int wid = COLS - strlen(buf) - 2;
+ int wid = COLS - strlenpt(buf) - 2;
- assert(0 <= x && x <= strlen(inputbuf));
+ assert(x <= strlen(inputbuf));
wattron(bottomwin, A_REVERSE);
blank_statusbar();