diff --git a/include/viswin.cpp b/include/viswin.cpp index 2e61b50bc..48993b4d7 100755 --- a/include/viswin.cpp +++ b/include/viswin.cpp @@ -723,7 +723,7 @@ void TViswin::paint_column (long j, bool end) RCT clipper; xvt_rect_set(&clipper, tabx(X_OFFSET), 0, tabx(X_OFFSET+1), taby(int(_textrows))); if (end) - xvt_rect_offset(&clipper, tabx(int(_textcolumns)), 0); + xvt_rect_offset(&clipper, tabx(int(_textcolumns-1)), 0); xvt_dwin_set_clip(win(), &clipper); const int col = end ? (int) (_textcolumns + X_OFFSET -1) : X_OFFSET; @@ -1478,7 +1478,7 @@ void TViswin::handler (WINDOW win, EVENT * ep) _point.y++; _need_scroll = up; } - else scroll_error(-1, _txt.lines()-_textrows-1); + else scroll_error(-1, _txt.lines()-_textrows/*-1*/); } else {