consistency tweak for get_page_start()
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1631 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
fdece4621f
commit
66081d4e70
|
@ -17,6 +17,12 @@ CVS code -
|
||||||
- winio.c:
|
- winio.c:
|
||||||
get_accepted_kbinput()
|
get_accepted_kbinput()
|
||||||
- Don't use "kbinput = wgetch(win)" as a switch value. (DLR)
|
- Don't use "kbinput = wgetch(win)" as a switch value. (DLR)
|
||||||
|
get_page_start()
|
||||||
|
- For consistency, tweak so that scrolling always occurs when we
|
||||||
|
try to move onto the "$" at the end of the line, as opposed to
|
||||||
|
(a) when we move onto the "$" at the end of the line on the
|
||||||
|
first page and (b) when we move onto the character just before
|
||||||
|
the "$" on subsequent pages. (DLR)
|
||||||
do_credits()
|
do_credits()
|
||||||
- Use nanosleep() instead of usleep(). The latter is only
|
- Use nanosleep() instead of usleep(). The latter is only
|
||||||
standard under BSD, whereas the former is POSIX compliant.
|
standard under BSD, whereas the former is POSIX compliant.
|
||||||
|
|
|
@ -1283,7 +1283,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 > 9)
|
||||||
return column - 7 - (column - 8) % (COLS - 9);
|
return column - 7 - (column - 7) % (COLS - 8);
|
||||||
else if (COLS > 2)
|
else if (COLS > 2)
|
||||||
return column - (COLS - 2);
|
return column - (COLS - 2);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue