fix: stabilize multi-account chat handling
This commit is contained in:
@@ -435,9 +435,9 @@ async fn test_ctrl_w_deletes_word_with_spaces() {
|
||||
assert_eq!(app.cursor_position, 9);
|
||||
}
|
||||
|
||||
/// Ctrl+A → курсор в начало в Insert mode
|
||||
/// Home → курсор в начало в Insert mode
|
||||
#[tokio::test]
|
||||
async fn test_ctrl_a_moves_to_start_in_insert() {
|
||||
async fn test_home_moves_to_start_in_insert() {
|
||||
let mut app = TestAppBuilder::new()
|
||||
.with_chats(vec![create_test_chat("Chat", 101)])
|
||||
.selected_chat(101)
|
||||
@@ -446,7 +446,7 @@ async fn test_ctrl_a_moves_to_start_in_insert() {
|
||||
.build();
|
||||
app.cursor_position = 11;
|
||||
|
||||
handle_main_input(&mut app, ctrl_key('a')).await;
|
||||
handle_main_input(&mut app, key(KeyCode::Home)).await;
|
||||
|
||||
assert_eq!(app.cursor_position, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user