Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix systemlist() #1135

Closed
wants to merge 1 commit into from
Closed

Fix systemlist() #1135

wants to merge 1 commit into from

Commits on Sep 30, 2016

  1. Fix systemlist()

    :help systemlist() says:
    
    > Output is the same as readfile() will output with {binary} argument
    > set to "b".
    
    And :help readfile() says:
    
    > When {binary} contains "b" binary mode is used:
    > - When the last line ends in a NL an extra empty list item is
    >   added.
    > - No CR characters are removed.
    
    systemlist() doesn't satisfy the first matter.
    
    ```vim
    :echo systemlist('echo hello')
    " => ['hello']
    " `echo` command outputs text with NL,
    " so this should be ['hello', '']
    ```
    
    This change fixes the above problem.
    thinca committed Sep 30, 2016
    Configuration menu
    Copy the full SHA
    5b2d022 View commit details
    Browse the repository at this point in the history