From fe80a798462c26abedcdf9b0d22877ab13e2ca7e Mon Sep 17 00:00:00 2001 From: thek4n Date: Fri, 8 Nov 2024 11:48:31 +0300 Subject: [PATCH] ref script t --- home/user/.local/bin/t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/user/.local/bin/t b/home/user/.local/bin/t index 49f6d4d..b517810 100755 --- a/home/user/.local/bin/t +++ b/home/user/.local/bin/t @@ -61,6 +61,10 @@ show_notes_with_indexes() { for note in $(IFS="${IFS}" get_notes_sorted_by_access_time) do note_lines="$(wc -l < "${note}")" + + if [ "${note_lines}" -gt 0 ]; then + note_lines="$((note_lines+1))" + fi if [ "${note_lines}" -gt 70 ]; then note_lines="..." elif [ "${note_lines}" -eq 0 ]; then