Christian wrote:
> Hi Bram!
>
> On Mo, 09 Feb 2015, Bram Moolenaar wrote:
>
> > > Expected: Same result, regardless of indent.
> > >
> > > How to reproduce - details
> > > ==========================
> > >
> > > Case_A: closing tag w/o any indent
> > >
> > > 1. contents:
> > > |<li>
> > > |foo
> > > |</li>
> > > ^ Note: pipe symbols mark window edge and are not part of contents
> > > 2. type "dit"
> > > 3. result: tags end up on different lines
> > > |<li>
> > > |</li>
> > >
> > > Case_B: closing tag with some indent
> > >
> > > 1. contents:
> > > |<li>
> > > |foo
> > > | </li>
> > > 2. type "dit"
> > > 3. result: tags end up on same line
> > > |<li></li>
> > >
> > > Additional Notes:
> > > =================
> > > - inconsistency goes away when using "vitd" instead of "dit"
> > > - compare "dit" with "di{" - latter behaves more nicely, IMHO
> > > - issue can be worked around with a custom mapping:
> > > :onoremap it :normal! vit<CR>
> > > - unfortunately, this workaround doesn't fix "surround" plugin (ID 1697)
> > > which
> > > breaks for removing tags at end of buffer that have no indent
> > > (problem: line preceding opening tag ends up after XML element contents)
> >
>
> Here is a patch including a test case.
Thanks!
> > I'll put it on the todo list.
>
> Will this ever going to shrink?
Well, if you create a good patch for every reported bug it definitely
helps to keep the list short. We still get feature requests too, those
usually stick around longer. And often result in new bug reports...
We should actually divide the length of the todo list by the number of
Vim users. Because the more users, the more issues are reported. Maybe
that number is actually going down, not sure.
--
hundred-and-one symptoms of being an internet addict:
205. You're constantly yelling at your spouse, family, roommate, whatever,
for using the phone for stupid things...like talking.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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].
For more options, visit https://groups.google.com/d/optout.