[lwatch-cvs] files/src strpcre.c,1.23,1.24
Brought to you by:
arturcz
|
From: <os...@us...> - 2004-01-13 14:20:08
|
Update of /cvsroot/lwatch/files/src
In directory sc8-pr-cvs1:/tmp/cvs-serv16527
Modified Files:
strpcre.c
Log Message:
Code beat
Index: strpcre.c
===================================================================
RCS file: /cvsroot/lwatch/files/src/strpcre.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -d -r1.23 -r1.24
*** strpcre.c 13 Jan 2004 14:09:58 -0000 1.23
--- strpcre.c 13 Jan 2004 14:20:05 -0000 1.24
***************
*** 168,172 ****
strncpy(output,input,strlen(input));
output[strlen(input)]=0;
- // printf("%d - %d = %d\n",real_len,win_width,to_cut);
if (to_cut<1) return output;
while (to_cut>0) {
--- 168,171 ----
***************
*** 174,183 ****
case '\n':
case '\0': break;
! case '0' ... '9': if (m<2) m++; else {to_cut-=m+1; m=0;}
! break;
case '^': if (m!=2) to_cut-=m+1;
! m=0;
break;
! default: to_cut--; break;
}
n--;
--- 173,184 ----
case '\n':
case '\0': break;
! case '0' ... '9': if (m<2) m++;
! else {to_cut-=m+1; m=0;}
! break;
case '^': if (m!=2) to_cut-=m+1;
! m=0;
break;
! default: to_cut--;
! break;
}
n--;
***************
*** 261,266 ****
MESG_COLOR,mesg_s);
#ifdef RESIZE
! if (lw_conf.term_cut) {cutstr=cut_line(cutstr,cstr,len-hl_num*6-17);
! cprintf(cutstr);} else cprintf(cstr);
free((void*)cutstr);
#else
--- 262,269 ----
MESG_COLOR,mesg_s);
#ifdef RESIZE
! if (lw_conf.term_cut) {
! cutstr=cut_line(cutstr,cstr,len-hl_num*6-17);
! cprintf(cutstr);
! } else cprintf(cstr);
free((void*)cutstr);
#else
|