Fix cursor placement in nick dialog

This commit is contained in:
Joscha 2022-07-23 23:45:42 +02:00
parent 73cb568702
commit 099cb8d4f7

View file

@ -30,9 +30,9 @@ struct InnerEditorState {
impl InnerEditorState { impl InnerEditorState {
fn new(text: String) -> Self { fn new(text: String) -> Self {
Self { Self {
text, idx: text.len(),
idx: 0,
last_width: 0, last_width: 0,
text,
} }
} }