Skip to content

panic and I'm not sure how I trigged it. #241

Description

@jrwren

I don't know how I got this.

panic: runtime error: slice bounds out of range [:1] with capacity 0

goroutine 19 [running]:
github.com/chzyer/readline.(*RuneBuffer).RuneSlice(0x1400030fb80, 0x1)
/Users/jawren/go/pkg/mod/github.com/chzyer/readline@v1.5.1/runebuf.go:111 +0x22c
github.com/chzyer/readline.(*opCompleter).CompleteRefresh(0x140003624d0)
/Users/jawren/go/pkg/mod/github.com/chzyer/readline@v1.5.1/complete.go:201 +0xc0
github.com/chzyer/readline.(*Operation).ioloop(0x140003623f0)
/Users/jawren/go/pkg/mod/github.com/chzyer/readline@v1.5.1/operation.go:357 +0x1600
created by github.com/chzyer/readline.NewOperation in goroutine 1
/Users/jawren/go/pkg/mod/github.com/chzyer/readline@v1.5.1/operation.go:88 +0x2c4

I couldn't reproduce, but maybe there is something obvious in code?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions