From 3cf3f52df8a77c0b954dd84fb8a6e2b25cb93cd9 Mon Sep 17 00:00:00 2001 From: LinuxMage Date: Tue, 22 Dec 2015 14:37:58 -0800 Subject: [PATCH] Fix for "V" when selecting the Visual Base Line. Before this fix the first line selected in "V" mode wasn't always selected correctly. --- src/vibreoffice.vbs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/vibreoffice.vbs b/src/vibreoffice.vbs index e3c46cb..de55d9f 100644 --- a/src/vibreoffice.vbs +++ b/src/vibreoffice.vbs @@ -93,10 +93,9 @@ Function formatVisualBase() ' then back to the start of the current line. getCursor().gotoEndOfLine(False) If getCursor().getPosition().Y() = VISUAL_BASE.Y() Then - If getCursor().goRight(1, False) Then - getCursor().goLeft(1, True) - End If + getCursor().goRight(1, False) End If + getCursor().goLeft(1, True) getCursor().gotoStartOfLine(True) End Function