commit ce68f81b2bb1517a6f9b781cad9ed480db299b9e
parent 255f5478e4c5973560539ca6dd9c999b1b00105c
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date: Tue, 18 Jul 2017 16:08:18 -0500
softwrap: remove unneeded caps on the number of chunks to move
Diffstat:
1 file changed, 0 insertions(+), 8 deletions(-)
diff --git a/src/winio.c b/src/winio.c
@@ -2803,10 +2803,6 @@ int go_back_chunks(int nrows, filestruct **line, size_t *leftedge)
{
int i;
- /* Don't move more chunks than the window can hold. */
- if (nrows > editwinrows - 1)
- nrows = (editwinrows < 2) ? 1 : editwinrows - 1;
-
#ifndef NANO_TINY
if (ISSET(SOFTWRAP)) {
size_t current_leftedge = *leftedge;
@@ -2844,10 +2840,6 @@ int go_forward_chunks(int nrows, filestruct **line, size_t *leftedge)
{
int i;
- /* Don't move more chunks than the window can hold. */
- if (nrows > editwinrows - 1)
- nrows = (editwinrows < 2) ? 1 : editwinrows - 1;
-
#ifndef NANO_TINY
if (ISSET(SOFTWRAP)) {
size_t current_leftedge = *leftedge;