diff --git a/ChangeLog b/ChangeLog index f3beb6f70637526229b7f7cfced792ad0c4fe39c..2950b952108ca78eb68e02b2c2c5e8398e43d195 100644 --- a/ChangeLog +++ b/ChangeLog @@ -119,6 +119,11 @@ CVS code - - Move the code that replaces the text of the current file with the text of the spell-checked file into its own function, replace_buffer(). (DLR) +- utils.c: + get_page_start() + - Fix test so that we scroll through the line in 8-character + chunks when COLS is greater than 8, not when COLS is greater + than 9. (DLR) - winio.c: nanoget_repaint() - Rename parameter inputbuf to buf, for consistency. (DLR) diff --git a/src/utils.c b/src/utils.c index 719498492bf3174a7af0891e1d1157d7e85da5ec..009b525e9eb36989270d8f245b686032a17e456e 100644 --- a/src/utils.c +++ b/src/utils.c @@ -403,7 +403,7 @@ size_t get_page_start(size_t column) { if (column == 0 || column < COLS - 1) return 0; - else if (COLS > 9) + else if (COLS > 8) return column - 7 - (column - 7) % (COLS - 8); else return column - (COLS - 2);