1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-01 13:36:46 +02:00

implement word deletion via ^W

This commit is contained in:
Jfreegman
2014-10-05 23:12:58 -04:00
parent e5d45fdf1d
commit 43552161f9
5 changed files with 57 additions and 3 deletions

View File

@ -49,6 +49,11 @@ void reset_buf(ChatContext *ctx);
Return 0 on success, -1 if yank buffer is empty or too long */
int yank_buf(ChatContext *ctx);
/* Deletes all characters from line starting at pos and going backwards
until we find a space or run out of characters.
Return 0 on success, -1 if no line or already at the beginning */
int del_word_buf(ChatContext *ctx);
/* Removes trailing spaces from line. */
void rm_trailing_spaces_buf(ChatContext *ctx);