aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/peterh/liner/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/peterh/liner/common.go')
-rw-r--r--vendor/github.com/peterh/liner/common.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/vendor/github.com/peterh/liner/common.go b/vendor/github.com/peterh/liner/common.go
index e5b8fc280..e16ecbc06 100644
--- a/vendor/github.com/peterh/liner/common.go
+++ b/vendor/github.com/peterh/liner/common.go
@@ -64,6 +64,11 @@ var ErrNotTerminalOutput = errors.New("standard output is not a terminal")
// be colour codes on some platforms).
var ErrInvalidPrompt = errors.New("invalid prompt")
+// ErrInternal is returned when liner experiences an error that it cannot
+// handle. For example, if the number of colums becomes zero during an
+// active call to Prompt
+var ErrInternal = errors.New("liner: internal error")
+
// KillRingMax is the max number of elements to save on the killring.
const KillRingMax = 60
@@ -156,7 +161,7 @@ func (s *State) getHistoryByPrefix(prefix string) (ph []string) {
return
}
-// Returns the history lines matching the inteligent search
+// Returns the history lines matching the intelligent search
func (s *State) getHistoryByPattern(pattern string) (ph []string, pos []int) {
if pattern == "" {
return