diff options
Diffstat (limited to 'state.go')
-rw-r--r-- | state.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -92,7 +92,7 @@ func (s *State) Get() string { // Preview of the the next x characters func (s *State) Preview(x int) string { - if s.Pos > len(s.Input) { + if s.Pos >= len(s.Input) { return "" } if len(s.Input)-s.Pos >= x { |