summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-03-15 22:53:57 +0000
committerBram Moolenaar <Bram@vim.org>2006-03-15 22:53:57 +0000
commit5671873089d516a10c79733182797075071eb5f3 (patch)
treeacc20341ea28453e7fdcea8b7e73de69ed7fc870 /src
parentc4675a193dfbba96755e9600e5429a1aac7364f2 (diff)
updated for version 7.0225
Diffstat (limited to 'src')
-rw-r--r--src/Makefile22
-rw-r--r--src/fileio.c14
-rw-r--r--src/mbyte.c2
-rw-r--r--src/os_unix.c4
-rw-r--r--src/proto/diff.pro1
5 files changed, 27 insertions, 16 deletions
diff --git a/src/Makefile b/src/Makefile
index 9345d1028b..ecf7bf8ff1 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -546,7 +546,7 @@ LINT_OPTIONS = -beprxzF
# Requires installing the ccmalloc library.
# Configuration is in the .ccmalloc or ~/.ccmalloc file.
# Doesn't work very well, since memory linked to from global variables
-# (indirectly) is also marked as leaked memory.
+# (in libraries) is also marked as leaked memory.
#PROFILE_CFLAGS = -DEXITFREE
#PROFILE_LIBS = -lccmalloc
@@ -2518,32 +2518,34 @@ ICONS = $(RESDIR)/$(ICON_APP)
install_macosx: gui_bundle
# Remove the link to the runtime dir, don't want to copy all of that.
- -rm $(APPDIR)/runtime
+ -rm $(RESDIR)/vim/runtime
$(INSTALL_DATA_R) $(APPDIR) $(DESTDIR)$(prefix)
# Install the runtime files. Recursive!
- -mkdir $(DESTDIR)$(prefix)/$(APPDIR)/runtime
- -mkdir $(DESTDIR)$(prefix)/$(APPDIR)/bin
+ -mkdir -p $(DESTDIR)$(prefix)/$(RESDIR)/vim/runtime
+# -mkdir $(DESTDIR)$(prefix)/$(APPDIR)/bin
srcdir=`pwd`; $(MAKE) -f Makefile installruntime \
VIMEXE=$$srcdir/$(VIMTARGET) \
- prefix=$(DESTDIR)$(prefix)/$(APPDIR) \
- VIMRTLOC=$(DESTDIR)$(prefix)/$(APPDIR)/runtime
+ prefix=$(DESTDIR)$(prefix)/$(RESDIR)/vim \
+ VIMRTLOC=$(DESTDIR)$(prefix)/$(RESDIR)/vim/runtime
# Put the link back.
- ln -s `pwd`/../runtime $(APPDIR)
+ ln -s `pwd`/../runtime $(RESDIR)/vim
# TODO: Create the vimtutor application.
-gui_bundle: $(APPDIR) bundle-dir bundle-executable bundle-info bundle-resource \
+gui_bundle: $(RESDIR) bundle-dir bundle-executable bundle-info bundle-resource \
bundle-language
-$(APPDIR):
+$(RESDIR):
mkdir -p $@
bundle-dir: $(APPDIR)/Contents $(VIMTARGET)
-@srcdir=`pwd`; cd $(HELPSOURCE); $(MAKE) VIMEXE=$$srcdir/$(VIMTARGET) vimtags
# Make a link to the runtime directory, so that we can try out the executable
# without installing it.
- -ln -s `pwd`/../runtime $(APPDIR)
+ mkdir -p $(RESDIR)/vim
+ -ln -s `pwd`/../runtime $(RESDIR)/vim
bundle-executable: $(VIMTARGET)
+ mkdir -p $(APPDIR)/Contents/MacOS
cp $(VIMTARGET) $(APPDIR)/Contents/MacOS/$(VIMTARGET)
bundle-info: bundle-dir
diff --git a/src/fileio.c b/src/fileio.c
index 8626f60a95..5dd502c823 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -1595,7 +1595,7 @@ retry:
}
else
# endif
-# ifdef MACOS_X
+# ifdef MACOS_CONVERT
if (fio_flags & FIO_MACROMAN)
{
/*
@@ -5043,7 +5043,7 @@ buf_write_bytes(ip)
}
# endif
-# ifdef MACOS_X
+# ifdef MACOS_CONVERT
else if (flags & FIO_MACROMAN)
{
/*
@@ -6407,6 +6407,11 @@ buf_check_timestamp(buf, focus)
/* Reload the buffer. */
buf_reload(buf, orig_mode);
+#ifdef FEAT_AUTOCMD
+ if (buf_valid(buf))
+ (void)apply_autocmds(EVENT_FILECHANGEDSHELLPOST,
+ buf->b_fname, buf->b_fname, FALSE, buf);
+#endif
#ifdef FEAT_GUI
/* restore this in case an autocommand has set it; it would break
* 'mousefocus' */
@@ -6959,6 +6964,7 @@ static struct event_name
{"FileAppendPre", EVENT_FILEAPPENDPRE},
{"FileAppendCmd", EVENT_FILEAPPENDCMD},
{"FileChangedShell",EVENT_FILECHANGEDSHELL},
+ {"FileChangedShellPost",EVENT_FILECHANGEDSHELLPOST},
{"FileChangedRO", EVENT_FILECHANGEDRO},
{"FileReadPost", EVENT_FILEREADPOST},
{"FileReadPre", EVENT_FILEREADPRE},
@@ -7001,6 +7007,7 @@ static struct event_name
{"VimLeavePre", EVENT_VIMLEAVEPRE},
{"WinEnter", EVENT_WINENTER},
{"WinLeave", EVENT_WINLEAVE},
+ {"VimResized", EVENT_VIMRESIZED},
{NULL, (event_T)0}
};
@@ -8363,7 +8370,8 @@ apply_autocmds_group(event, fname, fname_io, force, group, buf, eap)
/*
* FileChangedShell never nests, because it can create an endless loop.
*/
- if (filechangeshell_busy && event == EVENT_FILECHANGEDSHELL)
+ if (filechangeshell_busy && (event == EVENT_FILECHANGEDSHELL
+ || event == EVENT_FILECHANGEDSHELLPOST))
goto BYPASS_AU;
/*
diff --git a/src/mbyte.c b/src/mbyte.c
index a27649ad2f..13d3fa66ec 100644
--- a/src/mbyte.c
+++ b/src/mbyte.c
@@ -5931,7 +5931,7 @@ string_convert_ext(vcp, ptr, lenp, unconvlenp)
*lenp = (int)(d - retval);
break;
-# ifdef MACOS_X
+# ifdef MACOS_CONVERT
case CONV_MAC_LATIN1:
retval = mac_string_convert(ptr, len, lenp, vcp->vc_fail,
'm', 'l', unconvlenp);
diff --git a/src/os_unix.c b/src/os_unix.c
index 3f9bd136a0..1072b8e4f5 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -1090,7 +1090,7 @@ mch_init()
out_flush();
set_signals();
-#if defined(MACOS_X) && defined(FEAT_MBYTE)
+#ifdef MACOS_CONVERT
mac_conv_init();
#endif
}
@@ -2868,7 +2868,7 @@ mch_exit(r)
gui_exit(r);
#endif
-#if defined(MACOS_X) && defined(FEAT_MBYTE)
+#ifdef MACOS_CONVERT
mac_conv_cleanup();
#endif
diff --git a/src/proto/diff.pro b/src/proto/diff.pro
index d0f05fb4b3..e45127ad0d 100644
--- a/src/proto/diff.pro
+++ b/src/proto/diff.pro
@@ -15,6 +15,7 @@ int diff_check __ARGS((win_T *wp, linenr_T lnum));
int diff_check_fill __ARGS((win_T *wp, linenr_T lnum));
void diff_set_topline __ARGS((win_T *fromwin, win_T *towin));
int diffopt_changed __ARGS((void));
+int diffopt_horizontal __ARGS((void));
int diff_find_change __ARGS((win_T *wp, linenr_T lnum, int *startp, int *endp));
int diff_infold __ARGS((win_T *wp, linenr_T lnum));
void nv_diffgetput __ARGS((int put));