From 5ee7c611dc6b4f2d6228b5f3967fa8adb85ebfaf Mon Sep 17 00:00:00 2001 From: Sadrul Habib Chowdhury Date: Fri, 20 Feb 2009 13:50:26 -0500 Subject: [PATCH] Fix caption for 'select -' --- src/process.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.11.4.GIT