Re: [dev] [PATCH] [st 1/3] Use tsetdirt in tscrollup and tscrolldown.

From: <noname_AT_inventati.org>
Date: Sun, 20 Apr 2014 17:34:27 +0400

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.
Received on Sun Apr 20 2014 - 15:34:27 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 20 2014 - 15:36:17 CEST