Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for countToRightWord (0.12 sec)

  1. src/cmd/vendor/golang.org/x/term/terminal.go

    		pos--
    	}
    	for pos > 0 {
    		if t.line[pos] == ' ' {
    			pos++
    			break
    		}
    		pos--
    	}
    
    	return t.pos - pos
    }
    
    // countToRightWord returns then number of characters from the cursor to the
    // start of the next word.
    func (t *Terminal) countToRightWord() int {
    	pos := t.pos
    	for pos < len(t.line) {
    		if t.line[pos] == ' ' {
    			break
    		}
    		pos++
    	}
    	for pos < len(t.line) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 17:16:14 UTC 2022
    - 22.5K bytes
    - Viewed (0)
Back to top