On So, 13 Jun 2021, Yegappan Lakshmanan wrote:

> Hi Christian,
> 
> On Sun, Jun 13, 2021 at 10:46 AM Christian Brabandt <[email protected]> 
> wrote:
> >
> >
> > On So, 13 Jun 2021, Yegappan Lakshmanan wrote:
> >
> > > Hi,
> > >
> > > The help mentions that when 'paste' is set, the 'smartindent' option
> > > will be reset. But it currently doesn't work this way. The 'smartindent'
> > > option is not disabled when 'paste' is set. I am attaching a minor update
> > > to the help text to remove this.
> >
> > Shouldn't we rather fix the code? so that when paste is in effect, vim
> > would not indent lines based on what is pasted.
> >
> 
> Yes. I noticed this when adding a test for this. It makes sense to
> disable smartindent when 'paste' is set and restore the old value
> when 'paste' is disabled.

Yeah´, We had a similar issue a couple of years ago with smarttab and 
expandtab, see (54f018cd5994c3ffcd0740526e56db6934edf1f2 (tag: 
v7.4.868))

Best,
Christian
-- 
Jambus:
  Bluesmusikerfahrzeug

-- 
-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20210613185004.GD532641%40256bit.org.

Raspunde prin e-mail lui