From fc16e57e473393459c662d530c8b31bb1438df2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Tue, 24 Jan 2006 22:02:22 +0000 Subject: fixed "help"-message on w32 (split into smaller junks to prevent crashes) svn path=/trunk/externals/zexy/; revision=4486 --- src/msgfile.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src/msgfile.c') diff --git a/src/msgfile.c b/src/msgfile.c index ed1c676..6bc4e8b 100644 --- a/src/msgfile.c +++ b/src/msgfile.c @@ -687,11 +687,6 @@ static void msgfile_write(t_msgfile *x, t_symbol *filename, t_symbol *format) /* close */ if (f) fclose(f); -#if 0 - if (binbuf_write(bbuf, buf, "", cr)) - error("%s: write failed", filename->s_name); -#endif - binbuf_free(bbuf); } @@ -706,8 +701,8 @@ static void msgfile_help(t_msgfile *x) "\nprev\t\t: output previous line" "\nthis\t\t: output this line" "\nnext\t\t: output next line" - "\nflush\t\t: output all lines" - "\nset \t: clear the buffer and add " + "\nflush\t\t: output all lines"); + post("set \t: clear the buffer and add " "\nadd \t: add at the end of the file" "\nadd2 \t: append to the last line of the file" "\nappend \t: append at the current position" @@ -716,8 +711,8 @@ static void msgfile_help(t_msgfile *x) "\ninsert2 \t: append to position [current-1]" "\nreplace \t: replace current line by " "\ndelete [ []]\t: delete lines or regions" - "\nclear\t\t: delete the whole buffer" - "\nwhere\t\t: output current position" + "\nclear\t\t: delete the whole buffer"); + post("where\t\t: output current position" "\nfind \t: search for " "\nread []\t: read as " "\nwrite []\t: write as " -- cgit v1.2.1