diff options
| author | Didier Durand <[email protected]> | 2025-07-26 02:20:01 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-07-25 20:20:01 -0400 |
| commit | 2c924b9fdb255f943467fb70b018253b6ed33edb (patch) | |
| tree | c8db86aac7f9591c4a04faa8e475ccd1fdf109f4 /packages/tui | |
| parent | e8eaa77bf1714af985f82faf2cee6950ec3ea0f3 (diff) | |
| download | opencode-2c924b9fdb255f943467fb70b018253b6ed33edb.tar.gz opencode-2c924b9fdb255f943467fb70b018253b6ed33edb.zip | |
fixing various typos in text. (#1185)
Diffstat (limited to 'packages/tui')
| -rw-r--r-- | packages/tui/input/key_test.go | 2 | ||||
| -rw-r--r-- | packages/tui/input/table.go | 2 | ||||
| -rw-r--r-- | packages/tui/internal/clipboard/clipboard_windows.go | 4 | ||||
| -rw-r--r-- | packages/tui/internal/viewport/viewport.go | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/packages/tui/input/key_test.go b/packages/tui/input/key_test.go index 9bf4d9a51..b09f2f859 100644 --- a/packages/tui/input/key_test.go +++ b/packages/tui/input/key_test.go @@ -777,7 +777,7 @@ var seed = flag.Int64("seed", 0, "random seed (0 to autoselect)") // the seed flag was set. func genRandomData(logfn func(int64), length int) randTest { // We'll use a random source. However, we give the user the option - // to override it to a specific value for reproduceability. + // to override it to a specific value for reproducibility. s := *seed if s == 0 { s = time.Now().UnixNano() diff --git a/packages/tui/input/table.go b/packages/tui/input/table.go index d2373236b..7e81fde38 100644 --- a/packages/tui/input/table.go +++ b/packages/tui/input/table.go @@ -206,7 +206,7 @@ func buildKeysTable(flags int, term string) map[string]Key { table["\x1bOc"] = Key{Code: KeyRight, Mod: ModCtrl} table["\x1bOd"] = Key{Code: KeyLeft, Mod: ModCtrl} //nolint:godox - // TODO: invistigate if shift-ctrl arrow keys collide with DECCKM keys i.e. + // TODO: investigate if shift-ctrl arrow keys collide with DECCKM keys i.e. // "\x1bOA", "\x1bOB", "\x1bOC", "\x1bOD" // URxvt modifier CSI ~ keys diff --git a/packages/tui/internal/clipboard/clipboard_windows.go b/packages/tui/internal/clipboard/clipboard_windows.go index bd042cda8..09fc14169 100644 --- a/packages/tui/internal/clipboard/clipboard_windows.go +++ b/packages/tui/internal/clipboard/clipboard_windows.go @@ -311,13 +311,13 @@ func read(t Format) (buf []byte, err error) { format = cFmtUnicodeText } - // check if clipboard is avaliable for the requested format + // check if clipboard is available for the requested format r, _, err := isClipboardFormatAvailable.Call(format) if r == 0 { return nil, errUnavailable } - // try again until open clipboard successed + // try again until open clipboard succeeds for { r, _, _ = openClipboard.Call() if r == 0 { diff --git a/packages/tui/internal/viewport/viewport.go b/packages/tui/internal/viewport/viewport.go index 59fbe456e..10c875fab 100644 --- a/packages/tui/internal/viewport/viewport.go +++ b/packages/tui/internal/viewport/viewport.go @@ -270,7 +270,7 @@ func (m Model) GetContent() string { return strings.Join(m.lines, "\n") } -// calculateLine taking soft wraping into account, returns the total viewable +// calculateLine taking soft wrapping into account, returns the total viewable // lines and the real-line index for the given yoffset. func (m Model) calculateLine(yoffset int) (total, idx int) { if !m.SoftWrap { |
