From 3475bc8ef1a53c8b2f1fa69d5f804135ca97f035 Mon Sep 17 00:00:00 2001 From: cuishuang Date: Tue, 21 Oct 2025 10:41:30 +0800 Subject: [PATCH 1/2] term: fix some comments Change-Id: I8211158071d0a657d0097aba242278fa4bc7f653 Reviewed-on: https://go-review.googlesource.com/c/term/+/713420 Auto-Submit: Sean Liao Reviewed-by: David Chase Reviewed-by: Sean Liao LUCI-TryBot-Result: Go LUCI Reviewed-by: Dmitri Shuralyov --- terminal.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/terminal.go b/terminal.go index bddb2e2..9255449 100644 --- a/terminal.go +++ b/terminal.go @@ -413,7 +413,7 @@ func (t *Terminal) eraseNPreviousChars(n int) { } } -// countToLeftWord returns then number of characters from the cursor to the +// countToLeftWord returns the number of characters from the cursor to the // start of the previous word. func (t *Terminal) countToLeftWord() int { if t.pos == 0 { @@ -438,7 +438,7 @@ func (t *Terminal) countToLeftWord() int { return t.pos - pos } -// countToRightWord returns then number of characters from the cursor to the +// countToRightWord returns the number of characters from the cursor to the // start of the next word. func (t *Terminal) countToRightWord() int { pos := t.pos @@ -478,7 +478,7 @@ func visualLength(runes []rune) int { return length } -// histroryAt unlocks the terminal and relocks it while calling History.At. +// historyAt unlocks the terminal and relocks it while calling History.At. func (t *Terminal) historyAt(idx int) (string, bool) { t.lock.Unlock() // Unlock to avoid deadlock if History methods use the output writer. defer t.lock.Lock() // panic in At (or Len) protection. From 1231d5465be98a7c5f01140358c142d365d4fbb6 Mon Sep 17 00:00:00 2001 From: Gopher Robot Date: Sat, 8 Nov 2025 04:01:59 -0800 Subject: [PATCH 2/2] go.mod: update golang.org/x dependencies Update golang.org/x dependencies to their latest tagged versions. Change-Id: I2c69a9e891bebfbb3d88ab32d8a7dc2973440130 Reviewed-on: https://go-review.googlesource.com/c/term/+/718961 Reviewed-by: David Chase LUCI-TryBot-Result: Go LUCI Auto-Submit: Gopher Robot Reviewed-by: Dmitri Shuralyov --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 4d924e3..e56c130 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module golang.org/x/term go 1.24.0 -require golang.org/x/sys v0.37.0 +require golang.org/x/sys v0.38.0 diff --git a/go.sum b/go.sum index ff185ac..3bbbd1f 100644 --- a/go.sum +++ b/go.sum @@ -1,2 +1,2 @@ -golang.org/x/sys v0.37.0 h1:fdNQudmxPjkdUTPnLn5mdQv7Zwvbvpaxqs831goi9kQ= -golang.org/x/sys v0.37.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks= +golang.org/x/sys v0.38.0 h1:3yZWxaJjBmCWXqhN1qh02AkOnCQ1poK6oF+a7xWL6Gc= +golang.org/x/sys v0.38.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=