diff options
author | noname | 2014-04-20 17:26:13 +0400 |
---|---|---|
committer | Roberto E. Vargas Caballero | 2014-04-23 20:35:16 +0200 |
commit | 3afdb4ff04b45a5e4209a56d5073341c9d506b38 (patch) | |
tree | 94a038e33f121c962b35d8d1bcfe4b3b3fefad07 /Makefile | |
parent | f9dc374ea01c2921ec3bd1214f292a7036d069ae (diff) | |
download | st-3afdb4ff04b45a5e4209a56d5073341c9d506b38.tar.gz st-3afdb4ff04b45a5e4209a56d5073341c9d506b38.tar.xz st-3afdb4ff04b45a5e4209a56d5073341c9d506b38.zip |
Use tsetdirt in tscrollup and tscrolldown.
tscrollup and tscrolldown do not use tsetdirt, but their code is
equivalent to
tsetdirt(orig, term.bot-n);
tsetdirt(orig+n, term.bot);
tclearregion also marks cleared lines as dirty.
In tscrolldown it sets lines from term.bot-n+1 to term.bot dirty, and in
tscrollup it sets lines from orig to orig+n-1 dirty.
In both functions all lines from orig to term.bot are effectively set
dirty, but in tscrolldown lines from orig+n to term.bot are set dirty
twice, and in tscrollup lines from orig to term.bot-n are set dirty
twice.
These patches make it clear which lines are set dirty and sets them
dirty once in each funciton.
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions