add check for go to top

This commit is contained in:
Dylan Araps committed 2020-08-04 18:34:31 +03:00
1 parent da5e504130
commit be348c071f
1 file changed
+6 -2
+6 -2
View File
@@ -274,6 +274,10 @@ main() {
;;
g?)
case $y in
1) continue
esac
y=1 y2=1 cur=$1
redraw "$@"
;;
@@ -343,8 +347,8 @@ main() {
# handle keys which emit escape sequences
"$esc_c"*) esc=1 ;;
'[1') esc=2 ;;
*) esc=0 ;;
'[1') esc=2 ;;
*) esc=0 ;;
esac
done
}