diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-10-01 21:05:32 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-10-01 21:06:34 +0200 |
commit | 762aaffecfccee9f284b90bdf90e6c4af26f62cb (patch) | |
tree | 80aeb45cf685fe2ad50b79e0754c605e0d7bd37c | |
parent | 99ac971b66df7b07acba01e8ad3be27453f5d0e9 (diff) | |
download | xK-762aaffecfccee9f284b90bdf90e6c4af26f62cb.tar.gz xK-762aaffecfccee9f284b90bdf90e6c4af26f62cb.tar.xz xK-762aaffecfccee9f284b90bdf90e6c4af26f62cb.zip |
degesch: make text attributes toggle formatting
Instead of just setting it on.
Fixes bitlbee.
-rw-r--r-- | degesch.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -905,7 +905,7 @@ enum formatter_item_type FORMATTER_ITEM_ATTR, ///< Formatting attributes FORMATTER_ITEM_FG_COLOR, ///< Foreground color FORMATTER_ITEM_BG_COLOR, ///< Background color - FORMATTER_ITEM_SIMPLE, ///< For mIRC formatting only so far + FORMATTER_ITEM_SIMPLE, ///< Toggle mIRC formatting FORMATTER_ITEM_IGNORE_ATTR ///< Un/set attribute ignoration }; @@ -2707,7 +2707,7 @@ formatter_flush_attr state->want_background = -1; return true; case FORMATTER_ITEM_SIMPLE: - state->want |= item->attribute; + state->want ^= item->attribute; attribute_printer_update (state); return true; case FORMATTER_ITEM_FG_COLOR: @@ -9579,17 +9579,17 @@ static const char *g_first_time_help[] = "", "\x02Welcome to degesch!", "", - "To get a list of all commands, type \x02/help\x0f. To obtain", + "To get a list of all commands, type \x02/help\x02. To obtain", "more information on a command or option, simply add it as", - "a parameter, e.g. \x02/help set\x0f or \x02/help behaviour.logging\x0f.", + "a parameter, e.g. \x02/help set\x02 or \x02/help behaviour.logging\x02.", "", "To switch between buffers, press \x02" - "F5/Ctrl-P\x0f or \x02" "F6/Ctrl-N\x0f.", + "F5/Ctrl-P\x02 or \x02" "F6/Ctrl-N\x02.", "", "Finally, adding a network is as simple as:", - " - \x02/server add freenode\x0f", - " - \x02/set servers.freenode.addresses = \"chat.freenode.net\"\x0f", - " - \x02/connect freenode\x0f", + " - \x02/server add freenode\x02", + " - \x02/set servers.freenode.addresses = \"chat.freenode.net\"\x02", + " - \x02/connect freenode\x02", "", "That should be enough to get you started. Have fun!", "" |