@@ -1434,7 +1434,7 @@ func Loop(tty *vt100.TTY, fnord FilenameOrData, lineNumber LineNumber, colNumber
1434
1434
// Do not reset cut/copy/paste status
1435
1435
1436
1436
// First check if we just moved to this line with the arrow keys
1437
- justMovedUpOrDown := kh .PrevHas ("↓" , "↑" )
1437
+ justMovedUpOrDown := kh .PrevHas (downArrow , upArrow )
1438
1438
if e .macro != nil {
1439
1439
e .Home ()
1440
1440
} else if ! justMovedUpOrDown && e .EmptyRightTrimmedLine () && e .SearchTerm () == "" {
@@ -1461,7 +1461,7 @@ func Loop(tty *vt100.TTY, fnord FilenameOrData, lineNumber LineNumber, colNumber
1461
1461
// Do not reset cut/copy/paste status
1462
1462
1463
1463
// First check if we just moved to this line with the arrow keys, or just cut a line with ctrl-x
1464
- justMovedUpOrDown := kh .PrevHas ("↓" , "↑" , "c:24" )
1464
+ justMovedUpOrDown := kh .PrevHas (downArrow , upArrow , "c:24" )
1465
1465
if e .AtEndOfDocument () || e .macro != nil {
1466
1466
e .End (c )
1467
1467
} else if ! justMovedUpOrDown && e .AfterEndOfLine () && e .SearchTerm () == "" {
@@ -2048,7 +2048,7 @@ func Loop(tty *vt100.TTY, fnord FilenameOrData, lineNumber LineNumber, colNumber
2048
2048
const arrowKeyHighlightTime = 1200 * time .Millisecond
2049
2049
2050
2050
// Draw and/or redraw everything, with slightly different behavior over ssh
2051
- justMovedUpOrDown := kh .PrevIsWithin (arrowKeyHighlightTime , "↓" , "↑" )
2051
+ justMovedUpOrDown := kh .PrevIsWithin (arrowKeyHighlightTime , downArrow , upArrow )
2052
2052
e .RedrawAtEndOfKeyLoop (c , status , justMovedUpOrDown , true )
2053
2053
2054
2054
notEmptyLine := ! e .EmptyLine ()
@@ -2069,7 +2069,7 @@ func Loop(tty *vt100.TTY, fnord FilenameOrData, lineNumber LineNumber, colNumber
2069
2069
}
2070
2070
highlightTimerMut .Lock ()
2071
2071
defer highlightTimerMut .Unlock ()
2072
- justMovedUpOrDownOrLeftOrRight := kh .PrevIsWithin (arrowKeyHighlightTime , "↓" , "↑" )
2072
+ justMovedUpOrDownOrLeftOrRight := kh .PrevIsWithin (arrowKeyHighlightTime , downArrow , upArrow )
2073
2073
if e .waitWithRedrawing .Load () {
2074
2074
e .waitWithRedrawing .Store (false )
2075
2075
} else if ! justMovedUpOrDownOrLeftOrRight && regularEditingRightNow {
0 commit comments