mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-04 17:05:38 +00:00
widget: document MoveWord current limitations
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
This commit is contained in:
@@ -549,6 +549,10 @@ func (e *textView) MoveEnd(selAct selectionAction) {
|
|||||||
// MoveWord moves the caret to the next word in the specified direction.
|
// MoveWord moves the caret to the next word in the specified direction.
|
||||||
// Positive is forward, negative is backward.
|
// Positive is forward, negative is backward.
|
||||||
// Absolute values greater than one will skip that many words.
|
// Absolute values greater than one will skip that many words.
|
||||||
|
// BUG(whereswaldon): this method's definition of a "word" is currently
|
||||||
|
// whitespace-delimited. Languages that do not use whitespace to delimit
|
||||||
|
// words will experience counter-intuitive behavior when navigating by
|
||||||
|
// word.
|
||||||
func (e *textView) MoveWord(distance int, selAct selectionAction) {
|
func (e *textView) MoveWord(distance int, selAct selectionAction) {
|
||||||
// split the distance information into constituent parts to be
|
// split the distance information into constituent parts to be
|
||||||
// used independently.
|
// used independently.
|
||||||
|
|||||||
Reference in New Issue
Block a user