чување 93ab614f2086c800de00a04d1263affc20665d5d
родитељ 374a9c0afcc3395613d8be18ae288f5240cb6843
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Thu, 14 Sep 2023 12:58:45 +0200
ste.in: Bugfix: _rows/_cols were not saved after checking for change; output
filename in prompt
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
измењених датотека: 1, додавања: 4(+), брисања: 2(-)
diff --git a/ste.in b/ste.in
@@ -180,6 +180,8 @@ while [ "$continue" -eq 1 ]; do
if [ "$oldrows" -ne "$_rows" ] || [ "$oldcols" -ne "$_cols" ]; then
redraw=1
+ oldrows=$_rows
+ oldcols=$_cols
fi
if [ "$currow" -lt "$firstrow" ]; then
@@ -221,8 +223,8 @@ while [ "$continue" -eq 1 ]; do
redraw=0
fi
- printf "ste[%dx%d+%d@%d/%d]> " \
- "$_cols" "$_rows" "$firstrow" "$currow" "$maxrows"
+ printf "%s[%dx%d+%d@%d/%d]> " \
+ "${file##*/}" "$_cols" "$_rows" "$firstrow" "$currow" "$maxrows"
read -r cmd
IFS=' '