circo

claudio's IRC oasis
git clone git://git.bitsmanent.org/circo
Log | Files | Refs | README | LICENSE

commit 435746c763707f611101eb9ef330358ff6f5a92e
parent 11b2f991175fd26b594ed187ed71b477d163deeb
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Tue, 25 Jul 2017 19:05:21 +0200

Fix bufops()

Diffstat:
Mcirco.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/circo.c b/circo.c @@ -211,7 +211,7 @@ bufpos(char *buf, int len, int *line, int *off) { int set = 0, x, y, i; for(i = 0, x = y = 1; i < len; ++i) { - if(!set && line && off) { + if(!set && line && off != -1) { if(*off == i) { if(*line < 1) *line = y; @@ -770,6 +770,7 @@ recv_nick(char *who, char *u, char *txt) { void recv_notice(char *who, char *u, char *txt) { + /* XXX redirect to the relative buffer, if possible */ printb(sel, "NOTICE: %s: %s\n", who, txt); sel->need_redraw = 1; }