Skip to content

Commit

Permalink
less: Show correct line number
Browse files Browse the repository at this point in the history
This patch makes less start at line 1 instead of 0.
  • Loading branch information
demostanis authored and AtkinsSJ committed Sep 28, 2022
1 parent 505910a commit a194303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/Utilities/less.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ class Pager {
out(m_tty, "{}", m_filename);
break;
case 'l':
out(m_tty, "{}", m_line);
out(m_tty, "{}", m_line + 1);
break;
default:
out(m_tty, "?");
Expand Down

0 comments on commit a194303

Please sign in to comment.