diff options
| author | Zhizhen He <hezhizhen.yi@gmail.com> | 2023-02-22 23:36:04 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-23 00:36:04 +0900 |
| commit | 3364d4d147ade148d8e5dd67609e46f0ef6c50fc (patch) | |
| tree | 976d70d7d218cb1c29143201390db4c8d19b1715 /src | |
| parent | 57ad21e4bd2d9c59cdfe0522183ac12c30ee2f05 (diff) | |
| download | fzf-3364d4d147ade148d8e5dd67609e46f0ef6c50fc.tar.gz | |
Add spell check workflow (#3183)
Diffstat (limited to 'src')
| -rw-r--r-- | src/terminal.go | 2 | ||||
| -rw-r--r-- | src/util/util_test.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/terminal.go b/src/terminal.go index ebb48887..21400378 100644 --- a/src/terminal.go +++ b/src/terminal.go @@ -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 { diff --git a/src/util/util_test.go b/src/util/util_test.go index 534eeb71..27e7a049 100644 --- a/src/util/util_test.go +++ b/src/util/util_test.go @@ -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) } |
