Thursday, March 21, 2013

Re: VimDiff printing - close but no cigar

Hi Ben!

On Do, 21 Mär 2013, Ben Fritz wrote:

> On Thursday, March 21, 2013 8:14:03 AM UTC-5, ping wrote:
> > sorry to bring this old thread back.
> >
> > but looks I just find a new issue (maybe old/known?), this is reproducible:
> >
> > if the 2 buffer in vimdiff haven't been saved to files yet, the
> >
> > converted html output are the same one in the 2 panels -- they are just
> >
> > 2 copies of one of the files.
> >
> > but if I save the 2 buffers into files, then it's perfectly OK.
> >
> > I can provide an example file if required to check the issue...
> >
>
> Thanks, I've reproduced it. This is a bug unrelated to the original post, please create a new thread if you find more.
>

I think, this patch fixes it:
diff --git a/runtime/syntax/2html.vim b/runtime/syntax/2html.vim
--- a/runtime/syntax/2html.vim
+++ b/runtime/syntax/2html.vim
@@ -607,7 +607,7 @@
let s:orgbufnr = winbufnr(0)
let s:origwin_stl = &l:stl
if expand("%") == ""
- exec 'new Untitled.'.(s:settings.use_xhtml ? 'x' : '').'html'
+ exec 'new +enew Untitled.'.(s:settings.use_xhtml ? 'x' : '').'html'
else
exec 'new %.'.(s:settings.use_xhtml ? 'x' : '').'html'
endif


regards,
Christian
--
Letzte Worte eines Architekten:
"Da fällt mir noch was ein."

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: