≡

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 #2196

Bug #2196: 'sidescroll' and probably other settings not being restored if leaving via `<C-w C-q>`

Kind bug
Product Command-T
When Created 2015-04-06T23:14:44Z, updated 2015-04-07T00:12:44Z
Status closed
Reporter Greg Hurrell
Tags no tags

Description

There is code in there that registers an autocmd so that this shouldn't happen, but it is.

Repro:

  1. :set sidescroll=3
  2. Open Command-T with <leader>t
  3. Close GoToFile buffer with <C-w C-q>
  4. :verbose set sidescroll?

See that Command-T set it to 0 and didn't set it back.

Comments

  1. Greg Hurrell 2015-04-06T23:20:10Z

    Actually, even <C-q> is enough (default binding to move results into quickfix window).

  2. Greg Hurrell 2015-04-07T00:12:38Z

    Ok, found it's not a Command-T issue, sort-of.

    If I hit <C-q> (or <C-w C-q>, which ends up being the same thing because I can't type it fast enough), I end up getting in the quickfix window, and I have an ftdetect/qf.vim file which attempts to setlocal scrolloff=0, but as it's a global setting, it gets set globally.

    I wonder if I have any other setlocal in my ftdetect/* files that are unintentionally global...

  3. Greg Hurrell 2015-04-07T00:12:44Z

    Status changed:

    • From: new
    • To: closed
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets