commit b00f7e3c6f9b1f066335535e835b5296a380ad6a
parent e5806be519ef29263e22f609652595128c297bbe
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Sat, 16 Jul 2005 03:23:56 +0000
comment fix
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@2872 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/winio.c b/src/winio.c
@@ -3505,9 +3505,11 @@ int need_vertical_update(size_t old_pww)
* scrolling. direction is the direction to scroll, either UP or DOWN,
* and nlines is the number of lines to scroll.
*
- * Note that we don't draw the topmost or bottommost lines before or
- * after scrolling, since we can make no assumptions about which of the
- * two is the current line at either time. */
+ * We assume that the topmost and bottommost lines of the scrolled
+ * region are where the current line was before and will be after
+ * scrolling, and hence don't draw them, since we can't know which is
+ * which. edit_redraw() should be used to draw these lines, and to
+ * redraw marked lines, if applicable. */
void edit_scroll(updown direction, int nlines)
{
const filestruct *foo;