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 bug in HistoryHinter when ctx.history_index() is 0 #186

Merged
merged 1 commit into from
Jan 14, 2019

Conversation

Ryan1729
Copy link
Contributor

Running the example without a history.txt file on the current master lead to the following error:

thread 'main' panicked at 'attempt to subtract with overflow', src\hint.rs:26:13 note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace. error: process didn't exit successfully: `target\debug\examples\example.exe` (exit code: 101)

Running the example without a `history.txt` file on the current master lead to the following error: 
```
thread 'main' panicked at 'attempt to subtract with overflow', src\hint.rs:26:13 note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace. error: process didn't exit successfully: `target\debug\examples\example.exe` (exit code: 101)
```
@gwenn gwenn merged commit 52f4fe5 into kkawakam:master Jan 14, 2019
@gwenn
Copy link
Collaborator

gwenn commented Jan 14, 2019

Thanks.

gwenn added a commit to gwenn/rustyline that referenced this pull request Jan 14, 2019
gwenn added a commit that referenced this pull request Jan 14, 2019
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