Fixes e (end of word)

"e" will now work how it does in vim. Pressing "e" moves the cursor to the end of the current word. If already at the end of the word then it moves the cursor to the end of the next word.
This commit is contained in:
LinuxMage 2015-11-11 01:33:31 -08:00
parent ffb71f00c7
commit 00923cff63
1 changed files with 5 additions and 2 deletions

View File

@ -972,13 +972,16 @@ Function ProcessMovementKey(keyChar, Optional bExpand, Optional keyModifiers)
' maybe eventually cursorGoto... should return True/False for bsetCursor
bSetCursor = False
ElseIf keyChar = "G" Then
oTextCursor.gotoEnd(bExpand)
ElseIf keyChar = "G" Then
oTextCursor.gotoEnd(bExpand)
ElseIf keyChar = "w" or keyChar = "W" Then
oTextCursor.gotoNextWord(bExpand)
ElseIf keyChar = "b" or keyChar = "B" Then
oTextCursor.gotoPreviousWord(bExpand)
ElseIf keyChar = "e" Then
If oTextCursor.isEndOfWord(bExpand) Then
oTextCursor.gotoNextWord(bExpand)
End If
oTextCursor.gotoEndOfWord(bExpand)
ElseIf keyChar = ")" Then