2009-09-12 Chris Allegretta <chrisa@asty.org>
* winio.c (edit_update) - properly update edittop when using soft wrapping. Fixes lack of centering for searching for off-screen answers, found by Hannes <mr_creosote@mutantwatch.de>. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4409 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
bce7d404d9
commit
35afab5eba
|
@ -1,3 +1,8 @@
|
||||||
|
2009-09-12 Chris Allegretta <chrisa@asty.org>
|
||||||
|
* winio.c (edit_update) - properly update edittop when using soft wrapping.
|
||||||
|
Fixes lack of centering for searching for off-screen answers, found by
|
||||||
|
Hannes <mr_creosote@mutantwatch.de>.
|
||||||
|
|
||||||
2009-09-03 Chris Allegretta <chrisa@asty.org>
|
2009-09-03 Chris Allegretta <chrisa@asty.org>
|
||||||
* global.c (shortcut_init): Fix up/down keys not responding in the file browser,
|
* global.c (shortcut_init): Fix up/down keys not responding in the file browser,
|
||||||
discovered by Hannes <mr_creosote@mutantwatch.de>.
|
discovered by Hannes <mr_creosote@mutantwatch.de>.
|
||||||
|
|
|
@ -3245,9 +3245,11 @@ void edit_update(update_type location)
|
||||||
goal = editwinrows - 1;
|
goal = editwinrows - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (; goal > 0 && foo->prev != NULL; goal--)
|
for (; goal > 0 && foo->prev != NULL; goal--) {
|
||||||
|
if (ISSET(SOFTWRAP))
|
||||||
|
goal -= strlenpt(foo->data) / (COLS - 1);
|
||||||
foo = foo->prev;
|
foo = foo->prev;
|
||||||
|
}
|
||||||
openfile->edittop = foo;
|
openfile->edittop = foo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue