X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=900b56764ebb15914d0ddefb86d45194710b2cf1;hb=d5994b43ca78196b81ea276d7acb5ef2d4a671f7;hp=671b386cb800fe6c85c00dd7fd5cc8ccfd93f816;hpb=172f65436ce14a52842d67b862fdc45f8ff3ada3;p=st.git diff --git a/st.c b/st.c index 671b386..900b567 100644 --- a/st.c +++ b/st.c @@ -1102,6 +1102,7 @@ tnew(int col, int row) { term.alt [row] = xmalloc(term.col * sizeof(Glyph)); term.dirty[row] = 0; } + term.numlock = 1; memset(term.tabs, 0, term.col * sizeof(*term.tabs)); /* setup screen */ @@ -2704,8 +2705,7 @@ match(uint mask, uint state) { } void -numlock(const Arg *dummy) -{ +numlock(const Arg *dummy) { term.numlock ^= 1; }