X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:from:date :message-id:subject:to:content-type:x-gm-message-state; bh=NH7R2HruQ57FtN+6Yztr23yUA188pVThZV71kVHlsnI=; b=dI8qRZvKCr7nO2XrloRuxsEJMEH9EoubTbZiaFpATbp4/efuK2AiiQWbG/KdCx0Gun X0b54yCG5C0GaeJ2LzEozODeBkyAcXArxQcg5/VDC3x4+Ly6EGTCQUaOjaDAN61dmBp6 wBdjepwvlw/4zOT88O5w3Dlg0t0VN1zQNO7ZsMr3YOYo6R67t+SrlntlWZV/vhtsb4jx KLfaq+hXAJUCPVVnuJzs2eiNPNJYOL3cXuJzizkGc2b/hezBPAoheRkPswJoajeMw6Nr igAEzrF6T8K9DxCRmEp2vOgryTZjRPh3dS1EWmDlYlvouurpAx9/rfBgnWVf6BqNzwUy nyyw== MIME-Version: 1.0 In-Reply-To: References: From: Richard Gribble Date: Thu, 5 Jul 2012 08:11:56 -0400 Message-ID: Subject: Re: Linefeed without carriage return after quitting vim To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQm1/4Jybs1rbjIS4ZMKHAiuJVbBvIScilQV1514PDg/fXYD+2CTiqMNnMM+9soIBs+Q4ycg X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Thu, Jul 5, 2012 at 1:44 AM, Sumudu Fernando wrote: > > Using the latest cygwin DLL (1.7.15-1) I am routinely encountering a > strange issue when quitting vim. This only occurs if I have used ^Z > to suspend vim, restored it with fg, and later quit. IOW things work > normally if I never suspend vim. > > A problematic session looks something like: > -------- > [~]$ vim > > [1]+ Stopped vim > [~]$ fg > vim > [~]$ > -------- > > The problem is evident in the last two lines which should be flush > with the left margin. For comparison, substituing 'less' for 'vim': > -------- > [~]$ less /Cygwin.bat > > [1]+ Stopped less -r /Cygwin.bat > [~]$ fg > less -r /Cygwin.bat > [~]$ > -------- > > The terminal behaves normally so it doesn't seem like any settings get > corrupted (pressing enter gives me a properly-aligned prompt). > Currently, stty just outputs: > > speed 38400 baud; line = 0; > > but I have tried various settings of the newline / CR translations to no avail. > > Interestingly, the "info" program exhibits the same behaviour. I > thought maybe it would affect other "fullscreen" programs like "less" > or "man", but I couldn't reproduce it with those two (as shown above). > > Any ideas what could be causing this / how to further diagnose? It's > not a killer but it certainly looks weird. This used to happen with > older cygwin dll's but IIRC it was never so reliably reproducible. > > Thank you, > > > -Sumudu Fernando > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > Have you verified the setting in vim for how it saves files? You can set it to save either in DOS or Unix format by default. Also, if you're opening an existing file, vim will retain the format - no matter what setting you have for new files. Just a thought, Richard. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple