From: Daniel Carl Date: Sun, 5 Jan 2014 19:02:14 +0000 (+0100) Subject: Fixed typo in word prompt. X-Git-Url: https://git.owens.tech/assets/favicon.png/assets/favicon.png/git?a=commitdiff_plain;h=4306133e74ae2d457a0b6eb90cf7d0d8a5c30d14;p=vimb.git Fixed typo in word prompt. --- diff --git a/src/ex.c b/src/ex.c index 8a9882b..09c54a0 100644 --- a/src/ex.c +++ b/src/ex.c @@ -366,7 +366,7 @@ static void input_activate(void) char *text, *cmd; text = vb_get_input_text(); - /* skip leading promt char like ':' or '/' */ + /* skip leading prompt char like ':' or '/' */ /* TODO should we use a flag to determine if we should record the command * into the history - maybe it's not good to save commands in history that * where triggered by a map like ':name \, :set scripts!' - by the way diff --git a/src/hints.c b/src/hints.c index 792cee7..ef31661 100644 --- a/src/hints.c +++ b/src/hints.c @@ -230,7 +230,7 @@ gboolean hints_parse_prompt(const char *prompt, char *mode, gboolean *is_gmode) ? strchr(g_modes, pmode) != NULL : strchr(modes, pmode) != NULL; - /* fill pointer only if the promt was valid */ + /* fill pointer only if the prompt was valid */ if (res) { if (mode != NULL) { *mode = pmode; diff --git a/src/mode.c b/src/mode.c index 8579be6..ee3f1a0 100644 --- a/src/mode.c +++ b/src/mode.c @@ -97,11 +97,11 @@ void mode_enter(char id) * Set the prompt chars and switch to new mode. * * @id: Mode id. - * @prompt: Prompt string to set as current promt. + * @prompt: Prompt string to set as current prompt. * @print_prompt: Indicates if the new set prompt should be put into inputbox * after switching the mode. */ -void mode_enter_promt(char id, const char *prompt, gboolean print_prompt) +void mode_enter_prompt(char id, const char *prompt, gboolean print_prompt) { /* set the prompt to be accessible in mode_enter */ strncpy(vb.state.prompt, prompt, PROMPT_SIZE - 1); diff --git a/src/mode.h b/src/mode.h index 2e3fc33..b65f8a1 100644 --- a/src/mode.h +++ b/src/mode.h @@ -28,7 +28,7 @@ void mode_cleanup(void); void mode_add(char id, ModeTransitionFunc enter, ModeTransitionFunc leave, ModeKeyFunc keypress, ModeInputChangedFunc input_changed); void mode_enter(char id); -void mode_enter_promt(char id, const char *prompt, gboolean print_prompt); +void mode_enter_prompt(char id, const char *prompt, gboolean print_prompt); VbResult mode_handle_key(int key); gboolean mode_input_focusin(GtkWidget *widget, GdkEventFocus *event, gpointer data); gboolean mode_input_focusout(GtkWidget *widget, GdkEventFocus *event, gpointer data); diff --git a/src/normal.c b/src/normal.c index 25b8f94..a401f41 100644 --- a/src/normal.c +++ b/src/normal.c @@ -406,12 +406,12 @@ static VbResult normal_descent(const NormalCmdInfo *info) static VbResult normal_ex(const NormalCmdInfo *info) { if (info->key == 'F') { - mode_enter_promt('c', ";t", true); + mode_enter_prompt('c', ";t", true); } else if (info->key == 'f') { - mode_enter_promt('c', ";o", true); + mode_enter_prompt('c', ";o", true); } else { char prompt[2] = {info->key, '\0'}; - mode_enter_promt('c', prompt, true); + mode_enter_prompt('c', prompt, true); } return RESULT_COMPLETE; @@ -478,7 +478,7 @@ static VbResult normal_do_hint(const char *prompt) return RESULT_ERROR; } - mode_enter_promt('c', prompt, true); + mode_enter_prompt('c', prompt, true); return RESULT_COMPLETE; } @@ -491,7 +491,7 @@ static VbResult normal_input_open(const NormalCmdInfo *info) } /* switch mode after setting the input text to not trigger the * commands modes input change handler */ - mode_enter_promt('c', ":", false); + mode_enter_prompt('c', ":", false); return RESULT_COMPLETE; }