Skip to content

Commit

Permalink
fix case where caret is not placed, but line is re-displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
tavmem committed Nov 29, 2014
1 parent 257ce74 commit e7875d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kc.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ I line(FILE*f, S*a, I*n, PDA*p) // just starting or just executed: *a=*n=*p=0,
if(fnc) { I cnt=0,i;
for(i=0;i<strlen(lineA);i++) { if(lineA[i]==*fnc) cnt++; }
if(cnt==1) { ctl=1; O("%s\n",lineA); S ptr=strchr(lineA,*fnc); DO(ptr-lineA,O(" ")) O("^\n"); }}}
if(strlen(lineB) && !ctl) {
if(strlen(lineB) && !ctl && strcmp(lineA,lineB)) {
if(fnc) { I cnt=0,i; O("%s\n",lineB);
for(i=0;i<strlen(lineB);i++) { if(lineB[i]==*fnc) cnt++; }
if(cnt==1) { S ptr=strchr(lineB,*fnc); DO(ptr-lineB,O(" ")) O("^\n"); }}}
Expand Down

0 comments on commit e7875d2

Please sign in to comment.