---
st.c | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/st.c b/st.c
index 0d73d6e..8e502b0 100644
--- a/st.c
+++ b/st.c
@@ -1370,7 +1370,7 @@ tsetdirt(int top, int bot) {
LIMIT(bot, 0, term.row-1);
for(i = top; i <= bot; i++)
- term.dirty[i] = 1;
+ term.dirty[i] = true;
}
void
@@ -1417,7 +1417,7 @@ treset(void) {
memset(term.tabs, 0, term.col * sizeof(*term.tabs));
for(i = tabspaces; i < term.col; i += tabspaces)
- term.tabs[i] = 1;
+ term.tabs[i] = true;
term.top = 0;
term.bot = term.row - 1;
term.mode = MODE_WRAP;
@@ -1436,7 +1436,7 @@ void
tnew(int col, int row) {
term = (Term){ .c = { .attr = { .fg = defaultfg, .bg = defaultbg } } };
tresize(col, row);
- term.numlock = 1;
+ term.numlock = true;
treset();
}
@@ -1613,7 +1613,7 @@ tsetchar(char *c, Glyph *attr, int x, int y) {
term.line[y][x-1].mode &= ~ATTR_WIDE;
}
- term.dirty[y] = 1;
+ term.dirty[y] = true;
term.line[y][x] = *attr;
memcpy(term.line[y][x].c, c, UTF_SIZ);
}
@@ -1634,7 +1634,7 @@ tclearregion(int x1, int y1, int x2, int y2) {
LIMIT(y2, 0, term.row-1);
for(y = y1; y <= y2; y++) {
- term.dirty[y] = 1;
+ term.dirty[y] = true;
for(x = x1; x <= x2; x++) {
gp = &term.line[y][x];
if(selected(x, y))
@@ -2055,7 +2055,7 @@ csihandle(void) {
case 'g': /* TBC -- Tabulation clear */
switch(csiescseq.arg[0]) {
case 0: /* clear current tab stop */
- term.tabs[term.c.x] = 0;
+ term.tabs[term.c.x] = false;
break;
case 3: /* clear all the tabs */
memset(term.tabs, 0, term.col * sizeof(*term.tabs));
@@ -2526,7 +2526,7 @@ tcontrolcode(uchar ascii) {
tnewline(1); /* always go to first col */
break;
case 0x88: /* HTS -- Horizontal tab stop */
- term.tabs[term.c.x] = 1;
+ term.tabs[term.c.x] = true;
break;
case 0x8d: /* TODO: RI */
case 0x8e: /* TODO: SS2 */
@@ -2593,7 +2593,7 @@ eschandle(uchar ascii) {
tnewline(1); /* always go to first col */
break;
case 'H': /* HTS -- Horizontal tab stop */
- term.tabs[term.c.x] = 1;
+ term.tabs[term.c.x] = true;
break;
case 'M': /* RI -- Reverse index */
if(term.c.y == term.top) {
@@ -2981,7 +2981,7 @@ xhints(void) {
sizeh->width_inc = xw.cw;
sizeh->base_height = 2 * borderpx;
sizeh->base_width = 2 * borderpx;
- if(xw.isfixed == True) {
+ if(xw.isfixed == true) {
sizeh->flags |= PMaxSize | PMinSize;
sizeh->min_width = sizeh->max_width = xw.w;
sizeh->min_height = sizeh->max_height = xw.h;
@@ -3671,7 +3671,7 @@ drawregion(int x1, int y1, int x2, int y2) {
continue;
xtermclear(0, y, term.col, y);
- term.dirty[y] = 0;
+ term.dirty[y] = false;
base = term.line[y][0];
ic = ib = ox = 0;
for(x = x1; x < x2; x++) {
@@ -3761,7 +3761,7 @@ match(uint mask, uint state) {
void
numlock(const Arg *dummy) {
- term.numlock ^= 1;
+ term.numlock = !term.numlock;
}
char*
@@ -4008,7 +4008,7 @@ main(int argc, char *argv[]) {
uint cols = 80, rows = 24;
xw.l = xw.t = 0;
- xw.isfixed = False;
+ xw.isfixed = false;
xw.cursor = 0;
ARGBEGIN {
@@ -4030,7 +4030,7 @@ main(int argc, char *argv[]) {
&xw.l, &xw.t, &cols, &rows);
break;
case 'i':
- xw.isfixed = True;
+ xw.isfixed = true;
break;
case 'o':
opt_io = EARGF(usage());
--
1.8.4