Hi,

Christian Brabandt wrote:
> Bram,
> setting the marks from the last visual selection is not allowed, 
> although you can still :delmark them. From a scripting perspective it 
> would be nice, to have those marks also settable, so here is patch, that 
> allows this:
> 
> 
> diff --git a/src/mark.c b/src/mark.c
> --- a/src/mark.c
> +++ b/src/mark.c
> @@ -97,6 +97,18 @@
>         curbuf->b_op_end = *pos;
>         return OK;
>      }
> +#ifdef FEAT_VISUAL
> +    if (c == '<')
> +    {
> +       curbuf->b_visual.vi_start = *pos;
> +       return OK;
> +    }
> +    if (c == '<')

I think you meant to write

  +    if (c == '>')

here.

> +    {
> +       curbuf->b_visual.vi_end = *pos;
> +       return OK;
> +    }
> +#endif
>  
>  #ifndef EBCDIC
>      if (c > 'z')           /* some islower() and isupper() cannot handle

Regards,
Jürgen

-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

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