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

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

Raspunde prin e-mail lui