Karsten Hopp 157298
To: vim_dev@googlegroups.com
Karsten Hopp 157298
Subject: Patch 7.4.065
Karsten Hopp 157298
Fcc: outbox
Karsten Hopp 157298
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 157298
Mime-Version: 1.0
Karsten Hopp 157298
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 157298
Content-Transfer-Encoding: 8bit
Karsten Hopp 157298
------------
Karsten Hopp 157298
Karsten Hopp 157298
Patch 7.4.065
Karsten Hopp 157298
Problem:    When recording, the character typed at the hit-enter prompt is
Karsten Hopp 157298
            recorded twice. (Urtica Dioica)
Karsten Hopp 157298
Solution:   Avoid recording the character twice. (Christian Brabandt)
Karsten Hopp 157298
Files:      src/message.c
Karsten Hopp 157298
Karsten Hopp 157298
Karsten Hopp 157298
*** ../vim-7.4.064/src/message.c	2013-08-09 20:30:45.000000000 +0200
Karsten Hopp 157298
--- src/message.c	2013-11-04 01:56:09.000000000 +0100
Karsten Hopp 157298
***************
Karsten Hopp 157298
*** 887,892 ****
Karsten Hopp 157298
--- 887,894 ----
Karsten Hopp 157298
      int		oldState;
Karsten Hopp 157298
      int		tmpState;
Karsten Hopp 157298
      int		had_got_int;
Karsten Hopp 157298
+     int		save_Recording;
Karsten Hopp 157298
+     FILE	*save_scriptout;
Karsten Hopp 157298
  
Karsten Hopp 157298
      if (redraw == TRUE)
Karsten Hopp 157298
  	must_redraw = CLEAR;
Karsten Hopp 157298
***************
Karsten Hopp 157298
*** 957,967 ****
Karsten Hopp 157298
--- 959,979 ----
Karsten Hopp 157298
  	     * typeahead buffer. */
Karsten Hopp 157298
  	    ++no_mapping;
Karsten Hopp 157298
  	    ++allow_keys;
Karsten Hopp 157298
+ 
Karsten Hopp 157298
+ 	    /* Temporarily disable Recording. If Recording is active, the
Karsten Hopp 157298
+ 	     * character will be recorded later, since it will be added to the
Karsten Hopp 157298
+ 	     * typebuf after the loop */
Karsten Hopp 157298
+ 	    save_Recording = Recording;
Karsten Hopp 157298
+ 	    save_scriptout = scriptout;
Karsten Hopp 157298
+ 	    Recording = FALSE;
Karsten Hopp 157298
+ 	    scriptout = NULL;
Karsten Hopp 157298
  	    c = safe_vgetc();
Karsten Hopp 157298
  	    if (had_got_int && !global_busy)
Karsten Hopp 157298
  		got_int = FALSE;
Karsten Hopp 157298
  	    --no_mapping;
Karsten Hopp 157298
  	    --allow_keys;
Karsten Hopp 157298
+ 	    Recording = save_Recording;
Karsten Hopp 157298
+ 	    scriptout = save_scriptout;
Karsten Hopp 157298
  
Karsten Hopp 157298
  #ifdef FEAT_CLIPBOARD
Karsten Hopp 157298
  	    /* Strange way to allow copying (yanking) a modeless selection at
Karsten Hopp 157298
*** ../vim-7.4.064/src/version.c	2013-11-04 01:41:11.000000000 +0100
Karsten Hopp 157298
--- src/version.c	2013-11-04 01:53:19.000000000 +0100
Karsten Hopp 157298
***************
Karsten Hopp 157298
*** 740,741 ****
Karsten Hopp 157298
--- 740,743 ----
Karsten Hopp 157298
  {   /* Add new patch number below this line */
Karsten Hopp 157298
+ /**/
Karsten Hopp 157298
+     65,
Karsten Hopp 157298
  /**/
Karsten Hopp 157298
Karsten Hopp 157298
-- 
Karsten Hopp 157298
Zen Microsystems: we're the om in .commmmmmmmm
Karsten Hopp 157298
Karsten Hopp 157298
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 157298
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 157298
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 157298
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///