mirror of
https://github.com/rfivet/uemacs.git
synced 2024-11-19 02:56:08 -05:00
Fix up unused variable and ambiguous else in random.c
This commit is contained in:
parent
8eab871e55
commit
d79d222a45
15
random.c
15
random.c
@ -43,18 +43,6 @@ int showcpos(int f, int n)
|
|||||||
int savepos; /* temp save for current offset */
|
int savepos; /* temp save for current offset */
|
||||||
int ecol; /* column pos/end of current line */
|
int ecol; /* column pos/end of current line */
|
||||||
|
|
||||||
#if PKCODE
|
|
||||||
struct {
|
|
||||||
int pk_clin;
|
|
||||||
int pk_tlin;
|
|
||||||
int pk_ccol;
|
|
||||||
int pk_tcol;
|
|
||||||
long pk_cchr;
|
|
||||||
long pk_tchr;
|
|
||||||
int pk_perc;
|
|
||||||
int pk_char;
|
|
||||||
} pk_mlrec;
|
|
||||||
#endif
|
|
||||||
/* starting at the beginning of the buffer */
|
/* starting at the beginning of the buffer */
|
||||||
lp = lforw(curbp->b_linep);
|
lp = lforw(curbp->b_linep);
|
||||||
|
|
||||||
@ -331,7 +319,7 @@ int entab(int f, int n)
|
|||||||
ccol = 0;
|
ccol = 0;
|
||||||
while (curwp->w_doto < llength(curwp->w_dotp)) {
|
while (curwp->w_doto < llength(curwp->w_dotp)) {
|
||||||
/* see if it is time to compress */
|
/* see if it is time to compress */
|
||||||
if ((fspace >= 0) && (nextab(fspace) <= ccol))
|
if ((fspace >= 0) && (nextab(fspace) <= ccol)) {
|
||||||
if (ccol - fspace < 2)
|
if (ccol - fspace < 2)
|
||||||
fspace = -1;
|
fspace = -1;
|
||||||
else {
|
else {
|
||||||
@ -343,6 +331,7 @@ int entab(int f, int n)
|
|||||||
linsert(1, '\t');
|
linsert(1, '\t');
|
||||||
fspace = -1;
|
fspace = -1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* get the current character */
|
/* get the current character */
|
||||||
cchar = lgetc(curwp->w_dotp, curwp->w_doto);
|
cchar = lgetc(curwp->w_dotp, curwp->w_doto);
|
||||||
|
Loading…
Reference in New Issue
Block a user