diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-03-25 17:25:03 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-03-25 17:25:03 -0400 |
| commit | 43aa98337bca5c7408417a60787f792d8fe700a0 (patch) | |
| tree | c25689f9ef6fa455ade3d17872848ccba8016ec7 | |
| parent | 3deb0ff68ac6be482f120539d8b3d1ca65258916 (diff) | |
| download | fujinet-chat-43aa98337bca5c7408417a60787f792d8fe700a0.tar.gz | |
Speed up ^U.
| -rw-r--r-- | TODO | 9 | ||||
| -rw-r--r-- | src/edbox.c | 5 |
2 files changed, 8 insertions, 6 deletions
@@ -20,6 +20,10 @@ Other stuff: - [*] Start+A should *always* switch windows, even if all are inactive. It can act like Start+Left in that case. - [*] Auto-pinging the server seems to work, but needs more testing. +- If you "/m #channel message" or "/m nick message" from another + screen besides the one for #channel or nick, the message should be + printed locally in the correct screen, not the current one. Maybe + or maybe not: switch to that screen. - Load/save config files to N:SD///.FujiNetChat or such. Since we *have* to have a FujiNet anyway, might as well make better use of it. - Rewrite the incoming message parser! It needs to work more like @@ -32,8 +36,6 @@ Other stuff: polishing up. - More scrollback. Of course it needs more memory... see doc/scrollback.txt for my ideas on this. -- ^U works, but is slow (calls backspace() in a loop, which does a - memmove() each time). - Server /ping command is iffy (see do_server_pong() in irc.c). - "User has kicked <yourname> from #channel", the name should be replaced by "you". @@ -43,9 +45,6 @@ Other stuff: be nice, if we can afford the RAM. - Add an optional key parameter to /join (key). spec calls for it, I've never seen it used. -- 'Dead' screens (channels we've parted, or failed to join) should - show some kind of indicator, and not accept input. Although maybe - this isn't worth doing (you already get "cannot send to channel"). - *Possibly* save the config from within the client... though not all options can be changed (really only /nick and /beep). To make this useful would probably bloat the code too much. Some diff --git a/src/edbox.c b/src/edbox.c index cfaa2d6..dc1a8e2 100644 --- a/src/edbox.c +++ b/src/edbox.c @@ -163,7 +163,10 @@ static void forward_word(void) { } static void del_to_start(void) { - while(edbox_pos) backspace(); + if(!edbox_pos) return; + memmove(edit_box, edit_box + edbox_pos, EDBOX_SIZE - edbox_pos - 1); + edbox_len -= edbox_pos; + edbox_pos = 0; } void left(void) { |
