about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--input_buffer.c2
-rw-r--r--input_buffer.h2
-rw-r--r--input_win.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/input_buffer.c b/input_buffer.c
index 42eecfd4..98d19952 100644
--- a/input_buffer.c
+++ b/input_buffer.c
@@ -44,7 +44,7 @@ void inpbuf_append(char *inp)
     }
 }
 
-char *inp_buf_get_previous(void)
+char *inpbuf_get_previous(void)
 {
     if (_buf_size == 0 || _buf_prev == -1)
         return NULL;
diff --git a/input_buffer.h b/input_buffer.h
index a2008859..63a5e028 100644
--- a/input_buffer.h
+++ b/input_buffer.h
@@ -26,6 +26,6 @@
 
 void inpbuf_init(void);
 void inpbuf_append(char *inp);
-char *inp_buf_get_previous(void);
+char *inpbuf_get_previous(void);
 
 #endif
diff --git a/input_win.c b/input_win.c
index 94c4d203..8becfcc9 100644
--- a/input_win.c
+++ b/input_win.c
@@ -64,7 +64,7 @@ void inp_block(void)
  * *ch    - getch will put a charater here if there was any input
  * 
  * The example below shows the values of size, input, a call to wgetyx to
- * find the current cursor location, and the index if the input string.
+ * find the current cursor location, and the index of the input string.
  *
  * size  : "       7 "
  * input : " example "
@@ -125,7 +125,7 @@ void inp_poll_char(int *ch, char *input, int *size)
 
     // up arrow
     } else if (*ch == KEY_UP) {
-        char *prev = inp_buf_get_previous();
+        char *prev = inpbuf_get_previous();
         if (prev) {
             strcpy(input, prev);
             *size = strlen(input);