≡

wincent.dev

  • Products
  • Blog
  • Wiki
  • Issues
You are viewing an historical archive of past issues. Please report new issues to the appropriate project issue tracker on GitHub.
Home » Issues » Bug #1820

Bug #1820: Command-T doesn't invoke WinEnter on exit

Kind bug
Product Command-T
When Created 2011-05-19T09:30:44Z, updated 2015-04-10T05:37:34Z
Status closed
Reporter Adam Byrtek
Tags no tags

Description

I use the following autocmd to highlight the current line in the active window

 autocmd VimEnter,WinEnter * set cursorline
 autocmd WinLeave * set nocursorline

Unfortunately, it doesn't play well with Command-T. It seems like the WinLeave event is fired when a search is started, but there is no WinEnter on the original window it's done (either by opening a file or cancelling). Because of that, the highlighting stays disabled.

Comments

  1. Greg Hurrell 2011-05-19T16:22:08Z

    Plug-ins aren't supposed to (and in fact can't) fire autocmds, as Vim itself manages those.

  2. Adam Byrtek 2011-05-19T19:13:55Z

    Do you know what might be the reason of this behavior? What's unique about the Command-T window? Maybe it's a Vim bug after all.

  3. Greg Hurrell 2011-05-20T08:30:19Z

    No, I don't know.

  4. Greg Hurrell 2015-04-10T05:37:17Z

    Status changed:

    • From: new
    • To: closed
  5. Greg Hurrell 2015-04-10T05:37:34Z

    Closing due to lack of activity.

Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets