>> Hi all,
>>
>> I've noted this behaviour with omaps: in my omap I jump to a place in the
>> buffer, then after an if test I select visually something. So all is good
>> when
>> the test succeds and only the visual area gets modified. Now if the test
>> fails, no visual selection is created and the omap acts on my motion in
>> the buffer
>> instead of being cancelled. Is there a way to tell in the test, if it
>> fails to cancel the omap?
>
>I think this question belongs on the vim_use list.
>
>Try returning Esc.
>
>BTW: Have you tried the patch yet?

Hi Christian,

Sorry for not doing the test earlier, just tried and yes your patch fixes the 
issue (gUgn) thanks!
Could you explain how to return esc and ok, I will ask next time in the right 
list.

I tried: return '<esc>', execute ':normal! <esc>', feedkeys("\<cr>") and none 
worked

>regards,
>Christian

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Raspunde prin e-mail lui