Fix cursor placement in nick dialog
This commit is contained in:
parent
73cb568702
commit
099cb8d4f7
1 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue