On Mon, Apr 16, 2012 at 7:46 PM, Bram Moolenaar wrote:
>
> Brian Victor wrote:
>
>> As described in [1], the netbeans protocol "insert" command is behaving
>> incorrectly when the offset is in the middle of the line. After some
>> source diving, I discovered that the code was appending "for
>> simplicity." This patch fixes the command to insert instead.
>>
>> This is my first vim patch. I tried to follow the suggestions in
>> develop.txt. Notably, however, I'm uncertain if a function already
>> exists to insert text in a line. If there is, it might be better to use
>> it than to do the memmove and STRCAT calls I'm doing.
>>
>> [1] http://permalink.gmane.org/gmane.editors.vim.devel/34102
>
> I wonder if any user of the netbeans interface would be broken by this.
> Who actually is using this method?


Pyclewn uses this function to display its watched variables window.
The current implementation of insert is correct when you insert a
whole line between lines.


-- 
Xavier

Les Chemins de Lokoti: http://lokoti.alwaysdata.net

-- 
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

Raspunde prin e-mail lui