Fix cursor position
This commit is contained in:
parent
f072889a49
commit
2ec48d0ed4
2 changed files with 4 additions and 3 deletions
2
config.h
2
config.h
|
@ -47,7 +47,7 @@ enum keys {
|
||||||
};
|
};
|
||||||
|
|
||||||
enum actions {
|
enum actions {
|
||||||
COUNTING,
|
COUNTING = 500,
|
||||||
DELETE
|
DELETE
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
5
vip.c
5
vip.c
|
@ -185,8 +185,8 @@ void refresh_screen(void)
|
||||||
draw_rows();
|
draw_rows();
|
||||||
if (!cat_mode) {
|
if (!cat_mode) {
|
||||||
draw_status_bar();
|
draw_status_bar();
|
||||||
move_cursor((cur_editor->y - cur_editor->rowoff) + 1,
|
move_cursor(cur_editor->y - cur_editor->rowoff + 1,
|
||||||
(cur_editor->rx - cur_editor->coloff) + 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);
|
memset(&cmd, 0, MAX_COMMAND_SIZE);
|
||||||
} else {
|
} else {
|
||||||
move_xy(ARROW_DOWN);
|
move_xy(ARROW_DOWN);
|
||||||
|
wpprintw("%d", DELETE);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue