mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 01:08:45 +00:00
branch: Allow PgUp and PgDwn to put the cursor on the first or last row.
see r32036. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@32152 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
380ae9c292
commit
bd5efd7b53
@ -1447,8 +1447,8 @@ Row const & TextMetrics::getPitAndRowNearY(int & y, pit_type & pit,
|
||||
if (yy + rit->height() > y)
|
||||
break;
|
||||
|
||||
if (assert_in_view && yy + rit->height() != y) {
|
||||
if (!up) {
|
||||
if (assert_in_view) {
|
||||
if (!up && yy + rit->height() > y) {
|
||||
if (rit != pm.rows().begin()) {
|
||||
y = yy;
|
||||
--rit;
|
||||
@ -1460,7 +1460,7 @@ Row const & TextMetrics::getPitAndRowNearY(int & y, pit_type & pit,
|
||||
--rit;
|
||||
y = yy;
|
||||
}
|
||||
} else {
|
||||
} else if (up && yy != y) {
|
||||
if (rit != rlast) {
|
||||
y = yy + rit->height();
|
||||
++rit;
|
||||
|
@ -313,6 +313,8 @@ What's new
|
||||
- In the Linguistics module, do not switch to the buffer language in
|
||||
glosses (this was only a cosmetic issue in the LyX window).
|
||||
|
||||
- Allow PgUp and PgDown to position the cursor on the first or last row.
|
||||
|
||||
|
||||
* DOCUMENTATION AND LOCALIZATION
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user