Karsten Hopp c8cd8e
To: vim-dev@vim.org
Karsten Hopp c8cd8e
Subject: Patch 7.0.029
Karsten Hopp c8cd8e
Fcc: outbox
Karsten Hopp c8cd8e
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp c8cd8e
Mime-Version: 1.0
Karsten Hopp c8cd8e
Content-Type: text/plain; charset=ISO-8859-1
Karsten Hopp c8cd8e
Content-Transfer-Encoding: 8bit
Karsten Hopp c8cd8e
------------
Karsten Hopp c8cd8e
Karsten Hopp c8cd8e
Patch 7.0.029
Karsten Hopp c8cd8e
Problem:    getchar() may not position the cursor after a space.
Karsten Hopp c8cd8e
Solution:   Position the cursor explicitly.
Karsten Hopp c8cd8e
Files:	    src/eval.c
Karsten Hopp c8cd8e
Karsten Hopp c8cd8e
Karsten Hopp c8cd8e
*** ../vim-7.0.028/src/eval.c	Thu Jun 22 18:02:06 2006
Karsten Hopp c8cd8e
--- src/eval.c	Thu Jun 22 21:00:00 2006
Karsten Hopp c8cd8e
***************
Karsten Hopp c8cd8e
*** 9792,9797 ****
Karsten Hopp c8cd8e
--- 9792,9800 ----
Karsten Hopp c8cd8e
      varnumber_T		n;
Karsten Hopp c8cd8e
      int			error = FALSE;
Karsten Hopp c8cd8e
  
Karsten Hopp c8cd8e
+     /* Position the cursor.  Needed after a message that ends in a space. */
Karsten Hopp c8cd8e
+     windgoto(msg_row, msg_col);
Karsten Hopp c8cd8e
+ 
Karsten Hopp c8cd8e
      ++no_mapping;
Karsten Hopp c8cd8e
      ++allow_keys;
Karsten Hopp c8cd8e
      if (argvars[0].v_type == VAR_UNKNOWN)
Karsten Hopp c8cd8e
*** ../vim-7.0.028/src/version.c	Thu Jun 22 19:47:11 2006
Karsten Hopp c8cd8e
--- src/version.c	Thu Jun 22 20:55:43 2006
Karsten Hopp c8cd8e
***************
Karsten Hopp c8cd8e
*** 668,669 ****
Karsten Hopp c8cd8e
--- 668,671 ----
Karsten Hopp c8cd8e
  {   /* Add new patch number below this line */
Karsten Hopp c8cd8e
+ /**/
Karsten Hopp c8cd8e
+     29,
Karsten Hopp c8cd8e
  /**/
Karsten Hopp c8cd8e
Karsten Hopp c8cd8e
-- 
Karsten Hopp c8cd8e
BEDEVERE: How do you know so much about swallows?
Karsten Hopp c8cd8e
ARTHUR:   Well you have to know these things when you're a king, you know.
Karsten Hopp c8cd8e
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp c8cd8e
Karsten Hopp c8cd8e
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp c8cd8e
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp c8cd8e
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp c8cd8e
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///