On Monday, 31 July 2017 20:41:03 UTC+1, Jonathan Fudger wrote:
> On Monday, 31 July 2017 16:56:22 UTC+1, Jonathan Fudger wrote:
> > Hi everyone. I have been enjoying the job_start() functionality in Vim 8.0,
> > especially since patch 715 (fixing the problem of writing to the wrong
> > buffer
> > when the channel output buffer is deleted).
> >
> > However, I now have a problem where the folding of the active buffer
> > (containing the cursor) is affected by a channel writing to a different
> > buffer.
> >
> > Minimal example in Windows 10:
> >
> > I have a simple file called textfile.txt, containing only foldmarkers:
> >
> > {{{
> > }}}
> > {{{
> > }}}
> > {{{
> > }}}
> > {{{
> > }}}
> >
> > I open it in gvim (gvim -u NONE testfile.txt) and perform the following
> > commands:
> >
> > :set foldmethod=marker
> > :new
> > :wincmd p
> > :call job_start( ['cmd.exe'], { 'out_io': 'buffer', 'out_buf': 2 } )
> >
> > This writes 3 lines to empty buffer 2 (as expected: the initialisation lines
> > printed by cmd.exe). However, it also has the affect of making the first 3
> > lines visible in buffer 1. The visible lines cannot be closed using "zc".
> > Repeating :set foldmethod=marker is required to fix the folding.
> >
> > This behaviour is repeatable in 8.0.0753 and 8.0.0771 but NOT Vim 8.0.0604.
> > (I
> > am using the Cream builds of the Windows binaries.) Patch 771 is the latest
> > I have access to.
> >
> > Thanks in advance,
> > Jonathan
>
>
> I'm at home now (on a Linux machine). This issue looks to have been fixed in
> the latest Vim (8.0.0823). I'm not sure which patch fixed it, but I guess
> I'll wait for a later Cream build.
Unfortunately this appears not be fixed in the latest Windows build 8.0.0826
(either from tuxproject or vim-win32-installer). I'll see if I can find the
precise patch that fixed this on Linux.
--
--
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.