X-Spam-Check-By: sourceware.org Message-ID: <46218337.1030007@web.de> Date: Sun, 15 Apr 2007 03:43:19 +0200 From: Luca Masini Reply-To: Luca Masini User-Agent: Thunderbird 1.5.0.10 (X11/20070221) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: vim patch Content-Type: multipart/mixed; boundary="------------070603090800020702040405" X-Sender: lmasini AT web DOT de Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------070603090800020702040405 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit The attached patch should solve the problem with symbolic links. For ex. when editing /etc/hosts we get the warning E303: Unable to open swap file for "hosts", recovery impossible See also http://cygwin.com/ml/cygwin/2006-06/msg00279.html http://www.mail-archive.com/vim-dev AT vim DOT org/msg02519.html The patch is against vim-7.0.223-1-src.tar.bz2 Regards. Luca. --------------070603090800020702040405 Content-Type: text/x-patch; name="vim.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="vim.patch" diff --recursive --unified vim-7.0.223-1/src/window.c vim-7.0.223-1-patched/src/window.c --- vim-7.0.223-1/src/window.c 2007-03-27 17:46:56.000000000 +0200 +++ vim-7.0.223-1-patched/src/window.c 2007-04-15 03:30:44.056467200 +0200 @@ -5874,6 +5874,9 @@ #if defined(MACOS_CLASSIC) || defined(OS2) || defined(MSDOS) || defined(MSWIN) slash_adjust(buf); #endif +#if defined(__CYGWIN__) + cygwin_conv_to_posix_path( buf, buf ); +#endif return retval; } --------------070603090800020702040405 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ --------------070603090800020702040405--