1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 23:27:35 +00:00

less: Show correct line number

This patch makes less start at line 1 instead of 0.
This commit is contained in:
demostanis 2022-09-06 20:46:46 +02:00 committed by Sam Atkins
parent 505910aea1
commit a194303948

View file

@ -365,7 +365,7 @@ private:
out(m_tty, "{}", m_filename); out(m_tty, "{}", m_filename);
break; break;
case 'l': case 'l':
out(m_tty, "{}", m_line); out(m_tty, "{}", m_line + 1);
break; break;
default: default:
out(m_tty, "?"); out(m_tty, "?");