≡

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

Bug #1514: Error in CommandTAcceptSelection when opening file.

Kind bug
Product Command-T
When 2010-03-24T08:08:22Z
Status closed
Reporter anonymous
Tags no tags

Description

When i open CommandT and search for some file and then try to open it by hitting Enter, it displays this error:

Error detected while processing function CommandTAcceptSelection:
line    1:
E37: No write since last change (add ! to override)
Press ENTER or type command to continue

and the file is not opened. Vim is started normaly from command line.

Comments

  1. Greg Hurrell 2010-03-24T09:51:41Z

    I wonder if this is because you have 'hidden' set to off and there are unsaved changes in the current buffer.

    Do you have it turned off? ie. what does VIM say when you do :echo &hidden?

  2. anonymous 2010-03-24T11:42:43Z

    The output of :echo &hidden is 0 and you are probably right. I tried it again and the error happens when i have something modified and unsaved in current buffer.

  3. Greg Hurrell 2010-03-24T12:34:36Z

    I'll have a think and see if there's some way I can improve the UI here. I don't think I can (or should) override 'hidden', but I could at least suppress the error message and emit a friendlier warning instead. Perhaps there is even a way to avoid the error entirely (ie. falling back to opening in a new tab or split, and emitting a message explaining why this happened).

  4. Greg Hurrell 2010-03-24T18:45:57Z

    Ok, for the time being I am opening in a split when opening would otherwise fail (due to 'hidden' being off and 'modified' being true).

    Will mark this one as closed. New release including the change on the way shortly.

  5. Greg Hurrell 2010-03-24T18:46:54Z

    Status changed:

    • From: new
    • To: closed
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets