summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/terminal.go2
-rw-r--r--src/util/util_test.go4
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)
}