diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-01-09 21:16:21 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-01-09 21:16:21 +0000 |
commit | a40c500a4cf40a604851e4d22ba790a08dcbba5f (patch) | |
tree | 60592bb4f76a887176311f5ee0b944de53aeb77c | |
parent | 6cc1619799b39016acea738c1ae7ea17d2588b9c (diff) | |
download | vim-git-a40c500a4cf40a604851e4d22ba790a08dcbba5f.tar.gz |
updated for version 7.0036
-rw-r--r-- | src/GvimExt/Make_ming.mak | 8 | ||||
-rw-r--r-- | src/Make_ming.mak | 4 | ||||
-rw-r--r-- | src/ex_docmd.c | 5 | ||||
-rw-r--r-- | src/gui_w48.c | 2 | ||||
-rw-r--r-- | src/proto/buffer.pro | 2 | ||||
-rw-r--r-- | src/proto/gui_photon.pro | 2 |
6 files changed, 17 insertions, 6 deletions
diff --git a/src/GvimExt/Make_ming.mak b/src/GvimExt/Make_ming.mak index 9da563951..f10f73010 100644 --- a/src/GvimExt/Make_ming.mak +++ b/src/GvimExt/Make_ming.mak @@ -18,6 +18,7 @@ CROSS = no MINGWOLD = no ifeq ($(CROSS),yes) +DEL = rm ifeq ($(MINGWOLD),yes) CXX = i586-mingw32msvc-g++ CXXFLAGS := -O2 -mno-cygwin -fvtable-thunks @@ -31,6 +32,11 @@ else CXX := g++ WINDRES := windres CXXFLAGS := -O2 -mno-cygwin +ifneq (sh.exe, $(SHELL)) +DEL = rm +else +DEL = del +endif endif LIBS := -luuid RES := gvimext.res @@ -59,5 +65,5 @@ $(RES): gvimext_ming.rc $(WINDRES) --input-format=rc --output-format=coff -DMING $? -o $@ clean: clean-custom - $(RM) $(OBJ) $(RES) $(DLL) + -$(DEL) $(OBJ) $(RES) $(DLL) diff --git a/src/Make_ming.mak b/src/Make_ming.mak index 4074a88ea..e6bf381d0 100644 --- a/src/Make_ming.mak +++ b/src/Make_ming.mak @@ -581,7 +581,7 @@ ifneq (sh.exe, $(SHELL)) @echo 'char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)";' >> pathdef.c @echo 'char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)";' >> pathdef.c @echo 'char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)";' >> pathdef.c - @echo 'char_u *all_lflags = (char_u *)"$(CC) -s -o $(TARGET) $(LIB) -luuid -lole32 $(PYTHONLIB) $(RUBYLIB)";' >> pathdef.c + @echo 'char_u *all_lflags = (char_u *)"$(CC) $(CFLAGS) $(LFLAGS) -o $(TARGET) $(LIB) -lole32 -luuid $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(RUBYLIB)";' >> pathdef.c @echo 'char_u *compiled_user = (char_u *)"$(USERNAME)";' >> pathdef.c @echo 'char_u *compiled_sys = (char_u *)"$(USERDOMAIN)";' >> pathdef.c else @@ -591,7 +591,7 @@ else @echo char_u *default_vim_dir = (char_u *)"$(VIMRCLOC)"; >> pathdef.c @echo char_u *default_vimruntime_dir = (char_u *)"$(VIMRUNTIMEDIR)"; >> pathdef.c @echo char_u *all_cflags = (char_u *)"$(CC) $(CFLAGS)"; >> pathdef.c - @echo char_u *all_lflags = (char_u *)"$(CC) -s -o $(TARGET) $(LIB) -luuid -lole32 $(PYTHONLIB) $(RUBYLIB)"; >> pathdef.c + @echo char_u *all_lflags = (char_u *)"$(CC) $(CFLAGS) $(LFLAGS) -o $(TARGET) $(LIB) -lole32 -luuid $(MZSCHEME_LIBDIR) $(MZSCHEME_LIB) $(PYTHONLIB) $(RUBYLIB)"; >> pathdef.c @echo char_u *compiled_user = (char_u *)"$(USERNAME)"; >> pathdef.c @echo char_u *compiled_sys = (char_u *)"$(USERDOMAIN)"; >> pathdef.c endif diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 2b43dc51f..84cb39130 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -8085,6 +8085,11 @@ ex_normal(eap) ex_startinsert(eap) exarg_T *eap; { + /* Ignore the command when already in Insert mode. Inserting an + * expression register that invokes a function can do this. */ + if (State & INSERT) + return; + if (eap->forceit) { coladvance((colnr_T)MAXCOL); diff --git a/src/gui_w48.c b/src/gui_w48.c index 33edfd3af..00b5e6665 100644 --- a/src/gui_w48.c +++ b/src/gui_w48.c @@ -2414,7 +2414,7 @@ gui_mch_destroy_scrollbar(scrollbar_T *sb) * Get current mouse coordinates in text window. */ void -gui_mch_get_mouse_(int *x, int *y) +gui_mch_getmouse(int *x, int *y) { RECT rct; POINT mp; diff --git a/src/proto/buffer.pro b/src/proto/buffer.pro index 8641c75b5..835d2cefc 100644 --- a/src/proto/buffer.pro +++ b/src/proto/buffer.pro @@ -25,7 +25,7 @@ pos_T *buflist_findfpos __ARGS((buf_T *buf)); linenr_T buflist_findlnum __ARGS((buf_T *buf)); void buflist_list __ARGS((exarg_T *eap)); int buflist_name_nr __ARGS((int fnum, char_u **fname, linenr_T *lnum)); -int setfname __ARGS((buf_T *buf, char_u *ffname, char_u *sfname, int exist_msg)); +int setfname __ARGS((buf_T *buf, char_u *ffname, char_u *sfname, int message)); void buf_set_name __ARGS((int fnum, char_u *name)); void buf_name_changed __ARGS((buf_T *buf)); buf_T *setaltfname __ARGS((char_u *ffname, char_u *sfname, linenr_T lnum)); diff --git a/src/proto/gui_photon.pro b/src/proto/gui_photon.pro index af33ef5ce..47ffc54bd 100644 --- a/src/proto/gui_photon.pro +++ b/src/proto/gui_photon.pro @@ -23,7 +23,7 @@ void gui_mch_enable_scrollbar __ARGS((scrollbar_T *sb, int flag)); void gui_mch_destroy_scrollbar __ARGS((scrollbar_T *sb)); void mch_set_mouse_shape __ARGS((int shape)); void gui_mch_mousehide __ARGS((int hide)); -void gui_mch_getmouse __ARGS((int *x, int *y)); +int gui_mch_getmouse __ARGS((int *x, int *y)); void gui_mch_setmouse __ARGS((int x, int y)); long_u gui_mch_get_rgb __ARGS((guicolor_T pixel)); void gui_mch_new_colors __ARGS((void)); |