mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
forward_word in editor should move to the end of line
This commit is contained in:
parent
c6e1ed8c5c
commit
c2e162613f
1 changed files with 2 additions and 0 deletions
|
@ -360,6 +360,8 @@ export const forward_word = wrap_input(
|
|||
let boundaries = getWordBoundaries(text, selectionStart, false)
|
||||
if (selectionStart >= boundaries[0] && selectionStart < boundaries[1])
|
||||
boundaries = getWordBoundaries(text, boundaries[1], false)
|
||||
if (selectionStart >= boundaries[0]) // last word
|
||||
return [null, boundaries[1], null]
|
||||
return [null, boundaries[0], null]
|
||||
}),
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue