Fixed typo in word prompt.
authorDaniel Carl <danielcarl@gmx.de>
Sun, 5 Jan 2014 19:02:14 +0000 (20:02 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Sun, 5 Jan 2014 19:02:14 +0000 (20:02 +0100)
src/ex.c
src/hints.c
src/mode.c
src/mode.h
src/normal.c

index 8a9882b..09c54a0 100644 (file)
--- 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!<cr>' - by the way
index 792cee7..ef31661 100644 (file)
@@ -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;
index 8579be6..ee3f1a0 100644 (file)
@@ -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);
index 2e3fc33..b65f8a1 100644 (file)
@@ -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);
index 25b8f94..a401f41 100644 (file)
@@ -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;
 }