commit
fb0c3d1bb6
|
@ -1105,6 +1105,8 @@ Function ProcessMovementKey(keyChar, Optional bExpand, Optional keyModifiers)
|
||||||
getCursor().gotoStartOfLine(bExpand)
|
getCursor().gotoStartOfLine(bExpand)
|
||||||
bSetCursor = False
|
bSetCursor = False
|
||||||
ElseIf keyChar = "^" Then
|
ElseIf keyChar = "^" Then
|
||||||
|
' This variable represents the original line the cursor was on before
|
||||||
|
' any of the following changes.
|
||||||
dim oldLine
|
dim oldLine
|
||||||
oldLine = getCursor().getPosition().Y()
|
oldLine = getCursor().getPosition().Y()
|
||||||
|
|
||||||
|
@ -1305,8 +1307,9 @@ Function ProcessMovementKey(keyChar, Optional bExpand, Optional keyModifiers)
|
||||||
' are no more words.
|
' are no more words.
|
||||||
|
|
||||||
|
|
||||||
' Move cursor to right in case cursor is already at the end of a word.
|
' Move cursor to right by two in case cursor is already at the end of a
|
||||||
oTextCursor.goRight(1, bExpand)
|
' word.
|
||||||
|
oTextCursor.goRight(2, bExpand)
|
||||||
|
|
||||||
' gotoEndOfWord gets stuck sometimes so manually moving the cursor
|
' gotoEndOfWord gets stuck sometimes so manually moving the cursor
|
||||||
' right is necessary in these cases.
|
' right is necessary in these cases.
|
||||||
|
@ -1317,6 +1320,13 @@ Function ProcessMovementKey(keyChar, Optional bExpand, Optional keyModifiers)
|
||||||
End If
|
End If
|
||||||
Loop
|
Loop
|
||||||
|
|
||||||
|
' gotoEndOfWord moves the cursor one character further than vim does so
|
||||||
|
' move it back one if end of word is reached and not expanding
|
||||||
|
' selection.
|
||||||
|
If NOT bExpand And oTextCursor.isEndOfWord() Then
|
||||||
|
oTextCursor.goLeft(1, bExpand)
|
||||||
|
End If
|
||||||
|
|
||||||
ElseIf keyChar = ")" Then
|
ElseIf keyChar = ")" Then
|
||||||
oTextCursor.gotoNextSentence(bExpand)
|
oTextCursor.gotoNextSentence(bExpand)
|
||||||
ElseIf keyChar = "(" Then
|
ElseIf keyChar = "(" Then
|
||||||
|
|
Loading…
Reference in New Issue