Add spell check workflow (#3183)

This commit is contained in:
Zhizhen He 2023-02-22 23:36:04 +08:00 committed by GitHub
parent 57ad21e4bd
commit 3364d4d147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 4 deletions

10
.github/workflows/typos.yml vendored Normal file
View File

@ -0,0 +1,10 @@
name: "Spell Check"
on: [pull_request]
jobs:
typos:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: crate-ci/typos@v1.13.10

View File

@ -1145,7 +1145,7 @@ set, otherwise with \fBsh -c\fR, so in this case make sure that the command is
POSIX-compliant.
\fBbecome(...)\fR action is similar to \fBexecute(...)\fR, but it replaces the
current fzf process with the specifed command using \fBexecve(2)\fR system
current fzf process with the specified command using \fBexecve(2)\fR system
call.
\fBfzf --bind "enter:become(vim {})"\fR

View File

@ -3288,7 +3288,7 @@ func (t *Terminal) Loop() {
break
}
// Prevew scrollbar dragging
// Preview scrollbar dragging
headerLines := t.previewOpts.headerLines
pbarDragging = me.Down && (pbarDragging || clicked && t.hasPreviewWindow() && my >= t.pwindow.Top()+headerLines && my < t.pwindow.Top()+t.pwindow.Height() && mx == t.pwindow.Left()+t.pwindow.Width())
if pbarDragging {

View File

@ -70,7 +70,7 @@ func TestMin32(t *testing.T) {
}
}
func TestContrain(t *testing.T) {
func TestConstrain(t *testing.T) {
if Constrain(-3, -1, 3) != -1 {
t.Error("Expected", -1)
}
@ -83,7 +83,7 @@ func TestContrain(t *testing.T) {
}
}
func TestContrain32(t *testing.T) {
func TestConstrain32(t *testing.T) {
if Constrain32(-3, -1, 3) != -1 {
t.Error("Expected", -1)
}

6
typos.toml Normal file
View File

@ -0,0 +1,6 @@
# See https://github.com/crate-ci/typos/blob/master/docs/reference.md to configure typos
[default.extend-words]
ba = "ba"
fo = "fo"
enew = "enew"
tabe = "tabe"