From: Sadrul Habib Chowdhury Date: Fri, 20 Feb 2009 18:50:26 +0000 (-0500) Subject: Fix caption for 'select -' X-Git-Url: https://repo.or.cz/w/screen-lua.git/commitdiff_plain/5ee7c611dc6b4f2d6228b5f3967fa8adb85ebfaf Fix caption for 'select -' --- diff --git a/src/process.c b/src/process.c index ee2f915..66e7cd4 100644 --- a/src/process.c +++ b/src/process.c @@ -5330,6 +5330,11 @@ int where; int l; s = ss = buf; + if ((flags & 8) && where < 0) + { + *s = 0; + return ss; + } for (pp = ((flags & 4) && where >= 0) ? wtab + where + 1: wtab; pp < wtab + MAXWIN; pp++) { int rend = -1;