Trivial changes: whitespace and modes.
Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
This commit is contained in:
parent
77a0a5b519
commit
fa325e9b42
1021 changed files with 5688 additions and 6193 deletions
|
|
@ -388,7 +388,7 @@ textinsert(Text *t, uint q0, Rune *r, uint n, int tofile)
|
|||
textscrdraw(u);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
if(q0 < t->iq1)
|
||||
t->iq1 += n;
|
||||
|
|
@ -549,7 +549,7 @@ textbswidth(Text *t, Rune c)
|
|||
if(r == '\n'){ /* eat at most one more character */
|
||||
if(q == t->q0) /* eat the newline */
|
||||
--q;
|
||||
break;
|
||||
break;
|
||||
}
|
||||
if(c == 0x17){
|
||||
eq = isalnum(r);
|
||||
|
|
@ -771,7 +771,7 @@ texttype(Text *t, Rune r)
|
|||
case Kcmd+'Z': /* %-shift-Z: redo */
|
||||
typecommit(t);
|
||||
undo(t, nil, nil, FALSE, 0, nil, 0);
|
||||
return;
|
||||
return;
|
||||
|
||||
Tagdown:
|
||||
/* expand tag to show all text */
|
||||
|
|
@ -780,7 +780,7 @@ texttype(Text *t, Rune r)
|
|||
winresize(t->w, t->w->r, FALSE, TRUE);
|
||||
}
|
||||
return;
|
||||
|
||||
|
||||
Tagup:
|
||||
/* shrink tag to single line */
|
||||
if(t->w->tagexpand){
|
||||
|
|
@ -1192,7 +1192,7 @@ void
|
|||
textsetselect(Text *t, uint q0, uint q1)
|
||||
{
|
||||
int p0, p1, ticked;
|
||||
|
||||
|
||||
/* t->fr.p0 and t->fr.p1 are always right; t->q0 and t->q1 may be off */
|
||||
t->q0 = q0;
|
||||
t->q1 = q1;
|
||||
|
|
@ -1345,7 +1345,7 @@ textselect23(Text *t, uint *q0, uint *q1, Image *high, int mask)
|
|||
{
|
||||
uint p0, p1;
|
||||
int buts;
|
||||
|
||||
|
||||
p0 = xselect(&t->fr, mousectl, high, &p1);
|
||||
buts = mousectl->m.buttons;
|
||||
if((buts & mask) == 0){
|
||||
|
|
@ -1412,7 +1412,7 @@ textdoubleclick(Text *t, uint *q0, uint *q1)
|
|||
|
||||
if(textclickhtmlmatch(t, q0, q1))
|
||||
return;
|
||||
|
||||
|
||||
for(i=0; left[i]!=nil; i++){
|
||||
q = *q0;
|
||||
l = left[i];
|
||||
|
|
@ -1444,7 +1444,7 @@ textdoubleclick(Text *t, uint *q0, uint *q1)
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* try filling out word to right */
|
||||
while(*q1<t->file->b.nc && isalnum(textreadc(t, *q1)))
|
||||
(*q1)++;
|
||||
|
|
@ -1518,7 +1518,7 @@ static int
|
|||
ishtmlend(Text *t, uint q, uint *q0)
|
||||
{
|
||||
int c, c1, c2;
|
||||
|
||||
|
||||
if(q < 2)
|
||||
return 0;
|
||||
if(textreadc(t, --q) != '>')
|
||||
|
|
@ -1546,7 +1546,7 @@ textclickhtmlmatch(Text *t, uint *q0, uint *q1)
|
|||
{
|
||||
int depth, n;
|
||||
uint q, nq;
|
||||
|
||||
|
||||
q = *q0;
|
||||
// after opening tag? scan forward for closing tag
|
||||
if(ishtmlend(t, q, nil) == 1) {
|
||||
|
|
@ -1583,7 +1583,7 @@ textclickhtmlmatch(Text *t, uint *q0, uint *q1)
|
|||
q--;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue