Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] Completion fails on empty fields #6

Merged

Conversation

glejeune
Copy link
Contributor

No description provided.

@hymkor hymkor merged commit 7fad240 into nyaosorg:master Apr 20, 2024
@hymkor
Copy link
Collaborator

hymkor commented Apr 20, 2024

@glejeune Thank you !

I confirm that the bug below is fixed with your patch.

$ cd completion
$ go run example.go

and press TAB-KEY without no text input

> panic: runtime error: index out of range [-1]
goroutine 1 [running]:
github.com/nyaosorg/go-readline-ny/completion.complete({0x748fd4, 0x2}, {0x74931b, 0x5}, 0xc0001188c0, {0x7746b0, 0xc00002e760}, {0x0, 0x0})
        C:/Users/hymkor/src/go-readline-ny/completion/main.go:143 +0x525
: 

hymkor added a commit that referenced this pull request Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants