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