mirror of
https://github.com/Rigellute/spotify-tui.git
synced 2026-04-26 08:05:57 +03:00
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-tui#573
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Rigellute/spotify-tui/pull/30
Author: @fangyi-zhou
Created: 10/8/2019
Status: ✅ Merged
Merged: 10/18/2019
Merged by: @Rigellute
Base:
master← Head:fix-non-english-inpu📝 Commits (5)
804764dinput: Take care of index and width separatelyc8b45c1Fix test99c9e6dAdd comments w.r.t. inputsc976156Fix tests once againe3f0b63Add more tests w.r.t. inputs📊 Changes
4 files changed (+75 additions, -11 deletions)
View changed files
📝
Cargo.lock(+1 -0)📝
Cargo.toml(+1 -0)📝
src/app.rs(+8 -0)📝
src/handlers/input.rs(+65 -11)📄 Description
Fatal crash is due to
String::insert(https://doc.rust-lang.org/std/string/struct.String.html#method.insert)
The document says ""Panics if idx is larger than the String's length, or
if it does not lie on a char boundary.""
The solution is to find the correct index to insert into. Alternatively,
we have use a Vec instead of String, but that requires more effort
to change.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.