From 2ec48d0ed4f76e738638fcf58a96ee584aeecbee Mon Sep 17 00:00:00 2001 From: night0721 Date: Fri, 15 Nov 2024 10:14:52 +0000 Subject: [PATCH] Fix cursor position --- config.h | 2 +- vip.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config.h b/config.h index 82b20aa..d2f3090 100644 --- a/config.h +++ b/config.h @@ -47,7 +47,7 @@ enum keys { }; enum actions { - COUNTING, + COUNTING = 500, DELETE }; diff --git a/vip.c b/vip.c index 8ce1aa9..e253b93 100644 --- a/vip.c +++ b/vip.c @@ -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; }