diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-01-08 16:04:29 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-01-08 16:04:29 +0000 |
commit | cf3630f2d0d908f637f1d577a0cfd720987d35f0 (patch) | |
tree | e673fe5ef38ab133ff1001265c971237c11e9a31 /src | |
parent | 0d6602271c5d1954e7803a3f857d0f5d42851f84 (diff) |
updated for version 7.0034
Diffstat (limited to 'src')
-rw-r--r-- | src/Make_cyg.mak | 20 | ||||
-rw-r--r-- | src/Make_mvc.mak | 4 | ||||
-rw-r--r-- | src/ex_docmd.c | 8 | ||||
-rw-r--r-- | src/normal.c | 6 |
4 files changed, 28 insertions, 10 deletions
diff --git a/src/Make_cyg.mak b/src/Make_cyg.mak index f2e4c5a2cf..0ea3fa499f 100644 --- a/src/Make_cyg.mak +++ b/src/Make_cyg.mak @@ -1,6 +1,6 @@ # # Makefile for VIM on Win32, using Cygnus gcc -# Last updated by Dan Sharp. Last Change: 2004 Dec 17 +# Last updated by Dan Sharp. Last Change: 2005 Jan 08 # # This compiles Vim as a Windows application. If you want Vim to run as a # Cygwin application use the Makefile (just like on Unix). @@ -430,7 +430,7 @@ tags: clean: -$(DEL) $(OUTDIR)$(DIRSLASH)*.o -rmdir $(OUTDIR) - -$(DEL) *.exe + -$(DEL) $(EXE) vimrun.exe install.exe uninstal.exe ifdef PERL -$(DEL) if_perl.c endif @@ -438,6 +438,17 @@ endif $(MAKE) -C xxd -f Make_cyg.mak clean $(MAKE) -C GvimExt -f Make_ming.mak clean +distclean: clean + -$(DEL) obj$(DIRSLASH)*.o + -rmdir obj + -$(DEL) gobj$(DIRSLASH)*.o + -rmdir gobj + -$(DEL) objd$(DIRSLASH)*.o + -rmdir objd + -$(DEL) gobjd$(DIRSLASH)*.o + -rmdir gobjd + -$(DEL) *.exe + ########################################################################### $(OUTDIR)/%.o : %.c $(INCL) @@ -456,8 +467,9 @@ $(OUTDIR)/if_ole.o: if_ole.cpp $(INCL) $(CC) -c $(CFLAGS) -D__IID_DEFINED__ if_ole.cpp -o $(OUTDIR)/if_ole.o if_perl.c: if_perl.xs typemap - perl $(PERL)/lib/ExtUtils/xsubpp -prototypes -typemap \ - $(PERL)/lib/ExtUtils/typemap if_perl.xs > $@ + $(PERL)/bin/perl `cygpath -d $(PERL)/lib/ExtUtils/xsubpp` \ + -prototypes -typemap \ + `cygpath -d $(PERL)/lib/ExtUtils/typemap` if_perl.xs > $@ $(OUTDIR)/if_perl.o: if_perl.c $(INCL) ifeq (yes, $(USEDLL)) diff --git a/src/Make_mvc.mak b/src/Make_mvc.mak index df71a77782..62e875650b 100644 --- a/src/Make_mvc.mak +++ b/src/Make_mvc.mak @@ -55,7 +55,7 @@ # PostScript printing: POSTSCRIPT=yes (default is no) # Feature Set: FEATURES=[TINY, SMALL, NORMAL, BIG, HUGE] (default is BIG) # Version Support: WINVER=[0x0400, 0x0500] (default is 0x0400) -# Processor Version: CPUNR=[i386, i486, i586, i686, P4] (default is i386) +# Processor Version: CPUNR=[i386, i486, i586, i686, pentium4] (default is i386) # Optimization: OPTIMIZE=[SPACE, SPEED, MAXSPEED] (default is MAXSPEED) # Netbeans Support: NETBEANS=[yes or no] (default is yes if GUI is yes) # Netbeans Debugging Support: NBDEBUG=[yes or no] (default is no) @@ -276,7 +276,7 @@ CPUARG = /G4 CPUARG = /G5 !elseif "$(CPUNR)" == "i686" CPUARG = /G6 -!elseif "$(CPUNR)" == "P4" +!elseif "$(CPUNR)" == "pentium4" CPUARG = /G7 /arch:SSE2 !else CPUARG = diff --git a/src/ex_docmd.c b/src/ex_docmd.c index fcc24d26b4..2b43dc51fb 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -712,10 +712,10 @@ do_cmdline(cmdline, getline, cookie, flags) #ifdef FEAT_EVAL /* For every pair of do_cmdline()/do_one_cmd() calls, use an extra memory * location for storing error messages to be converted to an exception. - * This ensures that the do_errthrow() call in do_one_cmd() does not combine - * the messages stored by an earlier invocation of do_one_cmd() with the - * command name of the later one. This would happen when BufWritePost - * autocommands are executed after a write error. */ + * This ensures that the do_errthrow() call in do_one_cmd() does not + * combine the messages stored by an earlier invocation of do_one_cmd() + * with the command name of the later one. This would happen when + * BufWritePost autocommands are executed after a write error. */ saved_msg_list = msg_list; msg_list = &private_msg_list; private_msg_list = NULL; diff --git a/src/normal.c b/src/normal.c index e62648f8a4..16f65be2bf 100644 --- a/src/normal.c +++ b/src/normal.c @@ -8411,6 +8411,7 @@ nv_put(cap) #ifdef FEAT_VISUAL int regname = 0; void *reg1 = NULL, *reg2 = NULL; + int empty = FALSE; #endif int dir; int flags = 0; @@ -8467,6 +8468,7 @@ nv_put(cap) cap->oap->regname = NUL; nv_operator(cap); do_pending_operator(cap, 0, FALSE); + empty = (curbuf->b_ml.ml_flags & ML_EMPTY); /* delete PUT_LINE_BACKWARD; */ cap->oap->regname = regname; @@ -8504,6 +8506,10 @@ nv_put(cap) /* If a register was saved, put it back now. */ if (reg2 != NULL) put_register(regname, reg2); + /* When all lines were selected and deleted do_put() leaves an empty + * line that needs to delete now. */ + if (empty && *ml_get(curbuf->b_ml.ml_line_count) == NUL) + ml_delete(curbuf->b_ml.ml_line_count, TRUE); #endif auto_format(FALSE, TRUE); } |