≡

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

Bug #1534: CommandT error during key mapping

Kind bug
Product Command-T
When Created 2010-04-10T17:34:51Z, updated 2010-04-12T11:47:43Z
Status closed
Reporter anonymous
Tags no tags

Description

When I run :Command-T from gvim (on arch linux, special version compiled from AUR with ruby 1.9 support) I get the error:

NoMethodError: Undefined method 'to_a' for "<BS>":String

After that the Command-T window is raised and I can type characters. The problem is that I can't do any action defined as shortcut of Command-T: I can't use <Esc> to exit, I cant use ^U to delete my input and so on. Command-T seems to work properly, I think the problem is the key mapping.

If I type on vim :ruby p RUBY_VERSION vim print out "1.9.1" that is also the version that I have on my system (ruby --version says "ruby 1.9.1p378 (2010-01-10 revision 26273)").

Comments

  1. Greg Hurrell 2010-04-12T11:46:36Z

    This is fixed in 0.5.1.

    0.5 added the ability to override the mappings, and part of this involved adding a line which called to_a on String objects. I don't use 1.9 myself, so I didn't notice, but it turns out that in 1.9 the String class doesn't actually respond to the to_a method anymore.

    So 0.5.1 is a bugfix release that fixes the compatibility regression with Ruby 1.9.1.

    Will mark this one as closed.

  2. Greg Hurrell 2010-04-12T11:46:41Z

    Status changed:

    • From: new
    • To: closed
Add a comment

Comments are now closed for this issue.

  • contact
  • legal

Menu

  • Blog
  • Wiki
  • Issues
  • Snippets