Andrey Voropaev schrieb:
> On Wed, Nov 4, 2009 at 10:15 AM, Andrey Voropaev
> <[email protected]> wrote:
>> Actually, I was doing all of this to find what has happened with
>> Ctrl-U in insert mode. If I compile vim72 with patches 1-100 then
>> Ctrl-U in insert mode removes only inserted text and not the indent.
>> After applying patches 101-200 this behavior goes away. Now the Ctrl-U
>> always places cursor to the very beginning of the line. I don't think
>> this is correct behavior. At least documentation says that it should
>> remove the typed characters only and leave the indent.
> 
> I've identified the exact patch which does this. It is 7.2.169

And the following looks wrong in the patch:
One occurrence of "temp" not replaced by "save_col".

*** ../vim-7.2.168/src/edit.c   2009-05-13 12:46:36.000000000 +0200
--- src/edit.c  2009-05-13 18:29:21.000000000 +0200
***************

[...]

*** 8510,8520 ****
  #endif
                            )
        {
!           temp = curwin->w_cursor.col;
            beginline(BL_WHITE);
            if (curwin->w_cursor.col < (colnr_T)temp)
                mincol = curwin->w_cursor.col;
!           curwin->w_cursor.col = temp;
        }
  
        /*
--- 8516,8526 ----
  #endif
                            )
        {
!           save_col = curwin->w_cursor.col;
            beginline(BL_WHITE);
            if (curwin->w_cursor.col < (colnr_T)temp)
                mincol = curwin->w_cursor.col;
!           curwin->w_cursor.col = save_col;
        }
  
        /*

-- 
Andy

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to