Patch 8.0.0282
Problem:    When doing a Visual selection and using "I" to go to insert mode,
            CTRL-O needs to be used twice to go to Normal mode. (Coacher)
Solution:   Check for the return value of edit(). (Christian Brabandt,
            closes #1290)
Files:      src/normal.c, src/ops.c


*** ../vim-8.0.0281/src/normal.c        2017-01-21 20:04:17.566757789 +0100
--- src/normal.c        2017-02-01 14:56:34.658488222 +0100
***************
*** 2041,2046 ****
--- 2041,2048 ----
  
                if (restart_edit == 0)
                    restart_edit = restart_edit_save;
+               else
+                   cap->retval |= CA_COMMAND_BUSY;
            }
  #else
            vim_beep(BO_OPER);
*** ../vim-8.0.0281/src/ops.c   2017-01-24 20:47:46.346131723 +0100
--- src/ops.c   2017-02-01 14:57:21.914183700 +0100
***************
*** 2571,2577 ****
      }
  
      t1 = oap->start;
!     edit(NUL, FALSE, (linenr_T)count1);
  
      /* When a tab was inserted, and the characters in front of the tab
       * have been converted to a tab as well, the column of the cursor
--- 2571,2578 ----
      }
  
      t1 = oap->start;
!     if (edit(NUL, FALSE, (linenr_T)count1))
!       return;
  
      /* When a tab was inserted, and the characters in front of the tab
       * have been converted to a tab as well, the column of the cursor
*** ../vim-8.0.0281/src/version.c       2017-02-01 13:43:32.534844945 +0100
--- src/version.c       2017-02-01 15:00:27.776986153 +0100
***************
*** 766,767 ****
--- 766,769 ----
  {   /* Add new patch number below this line */
+ /**/
+     282,
  /**/

-- 
I just planted an Algebra tree. It has square roots.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui