Mercurial > hg > RemoteEditor > vim7
changeset 44:8f4b4c298247
Conected to SessionManager
author | Daichi TOMA <e085740@ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 19 Dec 2010 23:52:03 +0900 |
parents | fd31df305668 |
children | 6c0584ec21b1 |
files | src/auto/pathdef.c src/ex_cmds.h src/ex_docmd.c src/reditor.c src/reditor.h |
diffstat | 5 files changed, 20 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/auto/pathdef.c Sun Dec 19 22:36:32 2010 +0900 +++ b/src/auto/pathdef.c Sun Dec 19 23:52:03 2010 +0900 @@ -7,4 +7,4 @@ char_u *all_cflags = (char_u *)"gcc -c -I. -Iproto -DHAVE_CONFIG_H -DMACOS_X_UNIX -no-cpp-precomp -O2 -fno-strength-reduce -Wall -D_FORTIFY_SOURCE=1 "; char_u *all_lflags = (char_u *)"gcc -L/usr/local/lib -o vim -lm -lncurses -framework Cocoa "; char_u *compiled_user = (char_u *)"jersey"; -char_u *compiled_sys = (char_u *)"nw0840.st.ie.u-ryukyu.ac.jp"; +char_u *compiled_sys = (char_u *)"Macbooook.local";
--- a/src/ex_cmds.h Sun Dec 19 22:36:32 2010 +0900 +++ b/src/ex_cmds.h Sun Dec 19 23:52:03 2010 +0900 @@ -767,6 +767,12 @@ BANG|TRLBAR|CMDWIN), EX(CMD_registers, "registers", ex_display, EXTRA|NOTRLCOM|TRLBAR|CMDWIN), +EX(CMD_repjoin, "repjoin", ex_repjoin, + RANGE), +EX(CMD_repput, "repput", ex_repput, + RANGE), +EX(CMD_rep_quit, "repquit", ex_repquit, + RANGE), EX(CMD_resize, "resize", ex_resize, RANGE|NOTADR|TRLBAR|WORD1), EX(CMD_retab, "retab", ex_retab,
--- a/src/ex_docmd.c Sun Dec 19 22:36:32 2010 +0900 +++ b/src/ex_docmd.c Sun Dec 19 23:52:03 2010 +0900 @@ -492,6 +492,7 @@ */ static void ex_repjoin __ARGS((exarg_T *eap)); static void ex_repput __ARGS((exarg_T *eap)); +static void ex_repquit __ARGS((exarg_T *eap)); /* * Declare cmdnames[]. @@ -11266,7 +11267,7 @@ exarg_T *eap; { if (rep_join() == FALSE) { - rep_end(); + rep_quit(); return; } @@ -11278,8 +11279,15 @@ exarg_T *eap; { if (rep_put() == FALSE) { - rep_end(); + rep_quit(); return; } return; } + +static void +ex_repquit(eap) + exarg_T *eap; +{ + rep_quit(); +}
--- a/src/reditor.c Sun Dec 19 22:36:32 2010 +0900 +++ b/src/reditor.c Sun Dec 19 23:52:03 2010 +0900 @@ -1326,7 +1326,7 @@ rep_p = get_rep(); // What should I do? - rep_end(); + rep_quit(); } @@ -1397,7 +1397,7 @@ } void -rep_end() +rep_quit() { rep_T *rep_p; rep_p = get_rep();
--- a/src/reditor.h Sun Dec 19 22:36:32 2010 +0900 +++ b/src/reditor.h Sun Dec 19 23:52:03 2010 +0900 @@ -160,7 +160,7 @@ extern int rep_fd_set(fd_set*, fd_set*, int); extern int rep_select(int); extern void rep_prevline_flush(int,int); -extern void rep_end(); +extern void rep_quit(); extern int rep_join(); extern int rep_put();