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:
parent
4692fb00f9
commit
cb4f3af742
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user