dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit 4888f8f9b6bd6ef343cf5222547d9aa68c8e1499
parent 65d355d93933f4f8518b473c0405bb3daa1dc8de
Author: Marc Andre Tanner <mat@brain-dump.org>
Date:   Mon, 25 Mar 2013 09:16:14 +0100

vt: fix search functionality for "substring match"

before Count wasn't found in SLOCCount

Signed-off-by: Marc Andre Tanner <mat@brain-dump.org>

Diffstat:
vt.c | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/vt.c b/vt.c @@ -1799,8 +1799,13 @@ static void copymode_search(Vt *t, int direction) else if (width >= 1) width--; col += direction > 0 ? width : -width; - } else + } else if (searchbuf[s_start] == row->cells[col].text) { + s = s_start + direction; + matched_row = row; + matched_col = col; + } else { s = s_start; + } } if ((row = buffer_next_row(b, row, direction)) == start_row)