Skip to content

call execute('colorsheme foo') crashes Easymotion in Vim #512

Open
@utubo

Description

@utubo

Vim version 9.1.1336

Steps

  1. Use easymotion once.
  2. :call execute('colorsheme blue')
    (also, :call win_execute(winid, 'syntax enable') from :help popup-buffer.)

Actual

Error detected while processing ColorScheme Autocommands for "*"..function EasyMotion#highlight#i
nit[1]..EasyMotion#highlight#InitHL:
line   14:
E930: Cannot use :redir inside execute()
E930: Cannot use :redir inside execute()
line   17:
E121: Undefined variable: hlstatus

Cause
redir inside execute causes E930 in Vim 8.0 or later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions