1
1
mirror of https://github.com/walles/moar.git synced 2024-11-27 01:05:23 +03:00

Expose ShowLineNumbers

Currently the library has no way to configure line numbers, so they are just
forced on for all programs. Leave NewPager default as is, but expose option so
numbers can be turned off if wanted.
This commit is contained in:
Steven Penny 2021-04-10 00:12:21 -05:00
parent 4692fb00f9
commit cb4f3af742

View File

@ -42,7 +42,8 @@ type Pager struct {
isShowingHelp bool
preHelpState *_PreHelpState
showLineNumbers bool
// NewPager shows lines by default, this field can hide them
ShowLineNumbers bool
}
type _PreHelpState struct {