1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-05 06:06:45 +02:00

Add paste-mode to allow multiline text pasting

Ctrl-T toggles paste mode.
Useful when pasting multiline text because it avoids triggering an
enter keypress after linebreaks.
Instead, every \r is translated to \n which is again translated to a
pilcrow (see previous commit).
The pasted text can then be sent as a whole instead of splitting up in
multiple messages.
This commit is contained in:
Marvin Ewald
2016-01-17 15:10:46 +01:00
parent e6f839f9ac
commit 04576fea7e
6 changed files with 15 additions and 1 deletions

View File

@ -237,6 +237,7 @@ struct ChatContext {
#endif
uint8_t self_is_typing;
uint8_t pastemode; /* whether to translate \r to \n */
WINDOW *history;
WINDOW *linewin;