File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -413,7 +413,7 @@ func (t *Terminal) eraseNPreviousChars(n int) {
413413 }
414414}
415415
416- // countToLeftWord returns then number of characters from the cursor to the
416+ // countToLeftWord returns the number of characters from the cursor to the
417417// start of the previous word.
418418func (t * Terminal ) countToLeftWord () int {
419419 if t .pos == 0 {
@@ -438,7 +438,7 @@ func (t *Terminal) countToLeftWord() int {
438438 return t .pos - pos
439439}
440440
441- // countToRightWord returns then number of characters from the cursor to the
441+ // countToRightWord returns the number of characters from the cursor to the
442442// start of the next word.
443443func (t * Terminal ) countToRightWord () int {
444444 pos := t .pos
@@ -478,7 +478,7 @@ func visualLength(runes []rune) int {
478478 return length
479479}
480480
481- // histroryAt unlocks the terminal and relocks it while calling History.At.
481+ // historyAt unlocks the terminal and relocks it while calling History.At.
482482func (t * Terminal ) historyAt (idx int ) (string , bool ) {
483483 t .lock .Unlock () // Unlock to avoid deadlock if History methods use the output writer.
484484 defer t .lock .Lock () // panic in At (or Len) protection.
You can’t perform that action at this time.
0 commit comments