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 {
fn new(text: String) -> Self {
Self {
text,
idx: 0,
idx: text.len(),
last_width: 0,
text,
}
}