in 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 git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3166 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
a24da6944c
commit
fb0c3f85de
|
@ -119,6 +119,11 @@ CVS code -
|
||||||
- Move the code that replaces the text of the current file with
|
- Move the code that replaces the text of the current file with
|
||||||
the text of the spell-checked file into its own function,
|
the text of the spell-checked file into its own function,
|
||||||
replace_buffer(). (DLR)
|
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:
|
- winio.c:
|
||||||
nanoget_repaint()
|
nanoget_repaint()
|
||||||
- Rename parameter inputbuf to buf, for consistency. (DLR)
|
- Rename parameter inputbuf to buf, for consistency. (DLR)
|
||||||
|
|
|
@ -403,7 +403,7 @@ size_t get_page_start(size_t column)
|
||||||
{
|
{
|
||||||
if (column == 0 || column < COLS - 1)
|
if (column == 0 || column < COLS - 1)
|
||||||
return 0;
|
return 0;
|
||||||
else if (COLS > 9)
|
else if (COLS > 8)
|
||||||
return column - 7 - (column - 7) % (COLS - 8);
|
return column - 7 - (column - 7) % (COLS - 8);
|
||||||
else
|
else
|
||||||
return column - (COLS - 2);
|
return column - (COLS - 2);
|
||||||
|
|
Loading…
Reference in New Issue