mirror of
https://github.com/profanity-im/profanity.git
synced 2024-11-03 19:37:16 -05:00
Removed inp_get_next_char() from input_win.c
This commit is contained in:
parent
b32f58e22c
commit
82ce22ac9d
@ -250,12 +250,6 @@ inp_put_back(void)
|
|||||||
prefresh(inp_win, 0, pad_start, rows-1, 0, rows-1, cols-1);
|
prefresh(inp_win, 0, pad_start, rows-1, 0, rows-1, cols-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
inp_get_next_char(void)
|
|
||||||
{
|
|
||||||
return wgetch(inp_win);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
inp_replace_input(char *input, const char * const new_input, int *size)
|
inp_replace_input(char *input, const char * const new_input, int *size)
|
||||||
{
|
{
|
||||||
@ -293,7 +287,7 @@ _handle_edit(const wint_t ch, char *input, int *size)
|
|||||||
|
|
||||||
case 27: // ESC
|
case 27: // ESC
|
||||||
// check for ALT-num
|
// check for ALT-num
|
||||||
next_ch = inp_get_next_char();
|
next_ch = wgetch(inp_win);
|
||||||
if (next_ch != ERR) {
|
if (next_ch != ERR) {
|
||||||
switch (next_ch)
|
switch (next_ch)
|
||||||
{
|
{
|
||||||
|
1
src/ui.h
1
src/ui.h
@ -179,7 +179,6 @@ void inp_non_block(void);
|
|||||||
void inp_block(void);
|
void inp_block(void);
|
||||||
void inp_get_password(char *passwd);
|
void inp_get_password(char *passwd);
|
||||||
void inp_replace_input(char *input, const char * const new_input, int *size);
|
void inp_replace_input(char *input, const char * const new_input, int *size);
|
||||||
int inp_get_next_char(void);
|
|
||||||
|
|
||||||
void notify_remind(void);
|
void notify_remind(void);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user