aboutsummaryrefslogtreecommitdiff
path: root/src/edbox.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-18 03:07:00 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-18 03:07:00 -0400
commit0b9b047188bc61043095839d2af0e414eced4688 (patch)
tree1060687339b0847eaee1d15ceb14d5777f61cc63 /src/edbox.c
parent2ae01c91c28ea8ce05266d1e121438af140b870f (diff)
downloadfujinet-chat-0b9b047188bc61043095839d2af0e414eced4688.tar.gz
Tab completion getting better. Add a : after the nick, in channel screens.
Diffstat (limited to 'src/edbox.c')
-rw-r--r--src/edbox.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/edbox.c b/src/edbox.c
index 2bb1cef..b043233 100644
--- a/src/edbox.c
+++ b/src/edbox.c
@@ -272,11 +272,15 @@ void edbox_keystroke(void) {
show_cursor();
}
-void edbox_space(void) {
- edit_box[edbox_len++] = ' ';
+void edbox_addchr(char c) {
+ edit_box[edbox_len++] = c;
edbox_pos = edbox_len;
}
+void edbox_space(void) {
+ edbox_addchr(' ');
+}
+
void edbox_set(char *contents) {
edbox_clear();
while(*contents) {