Mercurial > hg > nnchat
comparison nnchat.c @ 180:2ada8d065bca
Remove useless comment.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 15 Nov 2010 08:37:16 +0200 |
parents | 8c493b5671bd |
children | b0a88d3835e9 |
comparison
equal
deleted
inserted
replaced
179:8c493b5671bd | 180:2ada8d065bca |
---|---|
706 scrollok(mainWin, 1); | 706 scrollok(mainWin, 1); |
707 | 707 |
708 return TRUE; | 708 return TRUE; |
709 } | 709 } |
710 | 710 |
711 /* | |
712 Different tab completion scenarios: | |
713 void updateWindows(void) | 711 void updateWindows(void) |
714 { | 712 { |
715 if (mainWin) redrawwin(mainWin); | 713 if (mainWin) redrawwin(mainWin); |
716 if (statusWin) redrawwin(statusWin); | 714 if (statusWin) redrawwin(statusWin); |
717 if (editWin) redrawwin(editWin); | 715 if (editWin) redrawwin(editWin); |
718 } | 716 } |
719 | 717 |
720 Line start | |
721 "foo<tab>" -> | |
722 * store "foo" as pattern | |
723 * find match: "Foobar" | |
724 * replace "foo" with match | |
725 | |
726 "Foobar: <tab>" -> | |
727 * ": " -> cycle to next match | |
728 * "Foorulez" | |
729 * replace "Foobar: " with "Foorulez: " | |
730 | |
731 Same when completing in middle of line, but " " instead of ": ". | |
732 */ | |
733 BOOL performTabCompletion(nn_editbuf_t *buf) | 718 BOOL performTabCompletion(nn_editbuf_t *buf) |
734 { | 719 { |
735 static char *previous = NULL; | 720 static char *previous = NULL; |
736 static char *pattern = NULL; | 721 static char *pattern = NULL; |
737 int mode = 0; | 722 int mode = 0; |