这是indexloc提供的服务,不要输入任何密码
Skip to content

Fix conditional definition of b:editorconfig_applied for external cores #193

@cxw42

Description

@cxw42

After f305bc7 (#142), we have:

       if s:UseConfigFiles_VimCore() == 0
            let b:editorconfig_applied = 1
        endif
    elseif s:editorconfig_core_mode ==? 'external_command'
        call s:UseConfigFiles_ExternalCommand()
        let b:editorconfig_applied = 1

I believe that should be

       if s:UseConfigFiles_VimCore() == 0
            let b:editorconfig_applied = 1
        endif
    elseif s:editorconfig_core_mode ==? 'external_command'
        if s:UseConfigFiles_ExternalCommand() == 0   " <====
          let b:editorconfig_applied = 1
        endif   " <====

plus changes to s:UseConfigFiles_ExternalCommand() to return nonzero on shell-exit != 0.

CC @dbarnett

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions