1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00

Consistent naming in input_buffer

This commit is contained in:
James Booth 2012-02-26 23:37:23 +00:00
parent cc4c7f3e19
commit 2379ae895f
3 changed files with 4 additions and 4 deletions

View File

@ -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) if (_buf_size == 0 || _buf_prev == -1)
return NULL; return NULL;

View File

@ -26,6 +26,6 @@
void inpbuf_init(void); void inpbuf_init(void);
void inpbuf_append(char *inp); void inpbuf_append(char *inp);
char *inp_buf_get_previous(void); char *inpbuf_get_previous(void);
#endif #endif

View File

@ -64,7 +64,7 @@ void inp_block(void)
* *ch - getch will put a charater here if there was any input * *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 * 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 " * size : " 7 "
* input : " example " * input : " example "
@ -125,7 +125,7 @@ void inp_poll_char(int *ch, char *input, int *size)
// up arrow // up arrow
} else if (*ch == KEY_UP) { } else if (*ch == KEY_UP) {
char *prev = inp_buf_get_previous(); char *prev = inpbuf_get_previous();
if (prev) { if (prev) {
strcpy(input, prev); strcpy(input, prev);
*size = strlen(input); *size = strlen(input);