From 3aa570ccbccd12bdc481f5d767b6bef52257d0ad Mon Sep 17 00:00:00 2001 From: Kalev Lember Date: Thu, 6 Aug 2009 21:35:48 +0300 Subject: Match prompts longer than terminal width Fixes https://bugzilla.redhat.com/show_bug.cgi?id=509288 diff --git a/main.c b/main.c index 9e680a2..508015a 100644 --- a/main.c +++ b/main.c @@ -783,7 +783,7 @@ static void process_singleline __P2 (char **,pbuf, int *,psize) * if a #prompt matches and sets #isprompt, then it is REALLY a prompt * so never match #actions on it. */ - if (lineend == end && tcp_fd == tcp_main_fd && printstrlen(linestart) < cols) { + if (lineend == end && tcp_fd == tcp_main_fd) { /* * The last line in the chunk we received has no trailing \n * Assume it is a prompt. -- cgit v0.10.2