Skip to content

Commit

Permalink
[cleanup] pkg: Fix misspellings in code.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaq committed Mar 31, 2020
1 parent 3cd90d7 commit 0234616
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/cli/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func TestReadCode_RedrawsOnSIGWINCH(t *testing.T) {
f := Setup()
defer f.Stop()

// Ensure that the terminal shows the input with the intial width.
// Ensure that the terminal shows the input with the initial width.
feedInput(f.TTY, "1234567890")
f.TTY.TestBuffer(t, bb().Write("1234567890").SetDotHere().Buffer())

Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/listbox_window_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func TestGetHorizontalWindow(t *testing.T) {
// All items cannot fit, selected = 0; show a window from 0. Height
// reduced to make room for scrollbar.
Args(ListBoxState{Items: TestItems{Prefix: "x", NItems: 11}, Selected: 0, First: 0}, 0, 6, 5).Rets(0, 4),
// All items cannot fit. Columsn are 0-3, 4-7, 8-10 (height reduced from
// All items cannot fit. Columns are 0-3, 4-7, 8-10 (height reduced from
// 5 to 4 for scrollbar). Selecting last item, and showing last two
// columns; height reduced to make room for scrollbar.
Args(ListBoxState{Items: TestItems{Prefix: "x", NItems: 11}, Selected: 10, First: 0}, 0, 7, 5).Rets(4, 4),
Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/prompt/prompt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestPrompt_StalePrompt(t *testing.T) {
})

prompt.Trigger(true)
// The compute function is blocked, so a stale version of the intial
// The compute function is blocked, so a stale version of the initial
// "unknown" prompt will be shown.
testUpdate(t, prompt, ui.T("???> ", ui.Inverse))

Expand Down

0 comments on commit 0234616

Please sign in to comment.