Fix cursor position

This commit is contained in:
Night Kaly 2024-11-15 10:14:52 +00:00
parent f072889a49
commit 2ec48d0ed4
Signed by: night0721
SSH key fingerprint: SHA256:B/hgVwUoBpx5vdNsXl9w8XwZljA9766uk6T4ubZp5HM
2 changed files with 4 additions and 3 deletions

View file

@ -47,7 +47,7 @@ enum keys {
};
enum actions {
COUNTING,
COUNTING = 500,
DELETE
};

5
vip.c
View file

@ -185,8 +185,8 @@ void refresh_screen(void)
draw_rows();
if (!cat_mode) {
draw_status_bar();
move_cursor((cur_editor->y - cur_editor->rowoff) + 1,
(cur_editor->rx - cur_editor->coloff) + 1);
move_cursor(cur_editor->y - cur_editor->rowoff + 1,
cur_editor->rx - cur_editor->coloff + 1 + 7);
}
}
@ -1229,6 +1229,7 @@ int main(int argc, char **argv)
memset(&cmd, 0, MAX_COMMAND_SIZE);
} else {
move_xy(ARROW_DOWN);
wpprintw("%d", DELETE);
}
break;
}