index
:
git.suckless.org/st
master
split
wchar
st is a simple terminal emulator for X which sucks less.
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rw-r--r--
st.c
3
1 files changed, 3 insertions, 0 deletions
diff --git a/st.c b/st.c
index e55e7b3..6f40e35 100644
--- a/
st.c
+++ b/
st.c
@@ -965,6 +965,9 @@ tsetdirt(int top, int bot)
{
int i;
+ if (term.row <= 0)
+ return;
+
LIMIT(top, 0, term.row-1);
LIMIT(bot, 0, term.row-1);