Comments (4)
Huh interesting, could you share the characters you used that caused the fatal exit?
from spotify-tui.
@Rigellute 'ыаываываайцайцайцайцайцаймямцу'
Any of that
from spotify-tui.
This is caused by inserting into a string outside word boundary, I'm submitting a PR to fix it
from spotify-tui.
Here's a test that currently fails on "non-english" input.
#[test]
fn test_input_handler_on_enter_non_english_text() {
let mut app = App::new();
app.input = "My tex".to_string();
app.input_cursor_position = app.input.len().try_into().unwrap();
handler(Key::Char('ö'), &mut app);
handler(Key::Char('ä'), &mut app);
handler(Key::Char('å'), &mut app);
handler(Key::Char('á'), &mut app);
handler(Key::Char('þ'), &mut app);
assert_eq!(app.input, "My texöäåáþ".to_string());
}
Result from cargo test
---- handlers::input::tests::test_input_handler_on_enter_non_english_text stdout ----
thread 'handlers::input::tests::test_input_handler_on_enter_non_english_text' panicked at 'assertion failed: self.is_char_boundary(idx)', src/liballoc/string.rs:1287:9
from spotify-tui.
Related Issues (20)
- Option / Future Option? - Change Layout and/or remove Spotify-tui banner HOT 5
- (Arch Linux) Installing brings this warning, thought I could point it out and maybe understand? HOT 1
- error when installing on steamos HOT 1
- Cannot find the speakers HOT 2
- Disabled in `brew` because of deprecated `[email protected]` HOT 3
- Is there any way to go to the current artist's page? HOT 2
- Extereme Delay Between spotify-tui and spotifyd
- Extereme Delay Between spotify-tui and spotifyd HOT 3
- Homebrew installer marked as deprecated HOT 5
- App plays with computer audio instead of headphone while I am using headphone HOT 1
- cargo install soptify-tui failed. HOT 5
- Alternatives for this abandonware? HOT 2
- Specifying device in configuration file / forcing tui to use specific device
- spt keeps returning to error when I connect to Sonos HOT 2
- Is playing from CLI? HOT 1
- wezterm terminal issue HOT 4
- EQ bars color
- re-run HOT 1
- Can't Access Artist Page HOT 3
- Spotify TUI only works when a song is selected that I have never heard before. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spotify-tui.