mirror of
https://github.com/Tha14/toxic.git
synced 2025-06-30 03:56:45 +02:00
refactor chat window input code, misc fixes
This commit is contained in:
@ -188,13 +188,6 @@ int valid_nick(uint8_t *nick)
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* Moves cursor to the end of the line in given window */
|
||||
void mv_curs_end(WINDOW *w, size_t len, int max_y, int max_x)
|
||||
{
|
||||
int new_x = len < max_x ? len : len % max_x;
|
||||
wmove(w, max_y - CURS_Y_OFFSET, new_x);
|
||||
}
|
||||
|
||||
/* gets base file name from path or original file name if no path is supplied */
|
||||
void get_file_name(uint8_t *namebuf, uint8_t *pathname)
|
||||
{
|
||||
|
Reference in New Issue
Block a user