Improve cursor movement around lines with ending line-breaks

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@22737 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2008-02-01 16:57:34 +00:00
parent 5ab8031c58
commit c85c19cc41
2 changed files with 6 additions and 3 deletions

View File

@ -893,9 +893,10 @@ pos_type TextMetrics::getColumnNearX(pit_type const pit,
bool const rtl = lastrow ? text_->isRTL(buffer, par) : false;
if (lastrow &&
((rtl && left_side && vc == row.pos() && x < tmpx - 5) ||
(!rtl && !left_side && vc == end && x > tmpx + 5)))
c = end;
else if (vc == row.pos()) {
(!rtl && !left_side && vc == end && x > tmpx + 5))) {
if (!par.isNewline(end - 1))
c = end;
} else if (vc == row.pos()) {
c = bidi.vis2log(vc);
if (bidi.level(c) % 2 == 1)
++c;

View File

@ -66,6 +66,8 @@ What's new
you can use "M-p Left/Right/Up/Down" keys. Note that depth-in/decrement
LFUNs are still reachable via "M-S-Left/Right" shortcuts.
- Improve cursor movement around lines with ending line-breaks.
* DOCUMENT INPUT/OUTPUT
- Support to paste text containing ligatures to LyX.