nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 744e97911c155c22f4049ec08ba696ee3bee2988
parent 143b8c7b13a040da48b311ffdbfac27bbf9bd224
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Tue,  1 Nov 2005 18:39:07 +0000

fix breakage


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3068 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
Msrc/prompt.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/prompt.c b/src/prompt.c @@ -602,7 +602,7 @@ void nanoget_repaint(const char *buf, size_t x) size_t start_col, xpt, page_start; char *expanded; - assert(prompt != NULL && x <= strlen(buf); + assert(prompt != NULL && x <= strlen(buf)); start_col = strlenpt(prompt) + 1; xpt = strnlenpt(buf, x); @@ -828,7 +828,7 @@ int statusq(bool allow_tabs, const shortcut *s, const char *curranswer, assert(prompt == NULL); - prompt = charalloc(prompt, ((COLS - 4) * mb_cur_max()) + 1); + prompt = charalloc(((COLS - 4) * mb_cur_max()) + 1); bottombars(s);