summaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2023-01-31 12:33:30 -0700
committercflip <cflip@cflip.net>2023-01-31 14:00:17 -0700
commit264c4186ed8e3d2e3275a6514c8714903036cb26 (patch)
tree60aaea6be43b128bcff1d3e46ec6cc6d103bbf13 /window.c
parent16b949aa3147e3aaadb6888f574f6424d4c2d8f3 (diff)
Rename the 'command mode' to 'prompt mode'
Since this mode will also be used to accept input for setting the filename, searching for a string and possibly more, it makes more sense for this mode to be called prompt mode. There is also less ambiguity between normal mode because sometimes that is also called command mode.
Diffstat (limited to 'window.c')
-rw-r--r--window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/window.c b/window.c
index cb041e5..8f08f39 100644
--- a/window.c
+++ b/window.c
@@ -157,7 +157,7 @@ void window_redraw(struct editor_state *editor)
int cursor_x = (editor->cursor_display_x - editor->col_offset);
int cursor_y = (editor->cursor_y - editor->line_offset);
- if (editor->mode == EDITOR_MODE_COMMAND) {
+ if (editor->mode == EDITOR_MODE_PROMPT) {
cursor_x = editor->cmdline.length;
cursor_y = editor->screen_rows + 1;
}