Skip to content

Commit

Permalink
Remove corresponding option for comments in inputrc
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlandon committed Nov 23, 2023
1 parent e3e9f73 commit 7fa808c
Showing 1 changed file with 11 additions and 20 deletions.
31 changes: 11 additions & 20 deletions inputrc/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,23 @@ import (

// Parser is a inputrc parser.
type Parser struct {
haltOnErr bool
strict bool
trimmedBufComments bool
name string
app string
term string
mode string
keymap string
line int
conds []bool
errs []error
haltOnErr bool
strict bool
name string
app string
term string
mode string
keymap string
line int
conds []bool
errs []error
}

// New creates a new inputrc parser.
func New(opts ...Option) *Parser {
// build parser state
p := &Parser{
line: 1,
trimmedBufComments: true,
line: 1,
}
for _, o := range opts {
o(p)
Expand Down Expand Up @@ -369,13 +367,6 @@ func WithMode(mode string) Option {
}
}

// WithTrimmedBufComments is a parser option to set trimmed buffer comments.
func WithTrimmedBufComments(trimmedBufComments bool) Option {
return func(p *Parser) {
p.trimmedBufComments = trimmedBufComments
}
}

// ParseError is a parse error.
type ParseError struct {
Name string
Expand Down

0 comments on commit 7fa808c

Please sign in to comment.