[7858] in SIPB bug reports

home help back first fref pref prev next nref lref last post

Re: Cursor placement on exit bug with new vim 5.8, and comment about exmh

daemon@ATHENA.MIT.EDU (Mitchell E Berger)
Fri Oct 19 22:14:07 2001

Message-Id: <200110200213.WAA22304@byte-me.mit.edu>
To: Mitchell E Berger <mitchb@MIT.EDU>
cc: Brad Thompson <yak@MIT.EDU>, bug-sipb@MIT.EDU
In-Reply-To: Your message of "Wed, 18 Jul 2001 20:03:34 EDT."
             <200107190003.UAA23817@byte-me.mit.edu> 
Date: Fri, 19 Oct 2001 22:13:50 -0400
From: Mitchell E Berger <mitchb@MIT.EDU>

Hi,

Back in July, I sent bug-sipb the following bug report...

> > > When you first turn the ruler on, vim will display the name of the
> > > file and total number of lines on the left side of the status line, and
> > > the current line and column numbers on the right side of the status line.

There was some investigation of it, but it didn't seem to ever get resolved.
I finally got around to looking at it again today and did some research.  It
turns out this bug was reported to the vim developers, and the following
patch (from their website), which is tiny, fixes it.  I've tested it by building
a patched vim as described in README.sipblocker and verified that it has the
desired result.  As it's a really annoying bug for those whose preferences
exercise it, I'd like to beg that vim get rebuilt with the patch.  In fact, I'd
be happy to do the work, but for the bits.

Thanks,
Mitch

*** ../vim-5.8.002/src/os_unix.c	Mon Jun  4 22:16:15 2001
--- src/os_unix.c	Fri Jun  8 10:23:02 2001
***************
*** 1707,1713 ****
--- 1707,1716 ----
  	if (newline_on_exit || (msg_didout && !swapping_screen()))
  	    out_char('\n');
  	else
+ 	{
  	    msg_clr_eos();	/* clear the rest of the display */
+ 	    windgoto((int)Rows - 1, 0);	/* may have moved the cursor */
+ 	}
  
  	/* Cursor may have been switched off without calling starttermcap()
  	 * when doing "vim -u vimrc" and vimrc contains ":q". */

home help back first fref pref prev next nref lref last post