Git Product home page Git Product logo

Comments (4)

junegunn avatar junegunn commented on August 26, 2024

Hi, thanks for the report. Looking the the call stack, it seems that you're not running the latest revision. Could you update and check if it still fails? I can't reproduce the problem with the following command:

echo "select Hráč Protihráč, sum(Zabití) Zabití, sum(Smrtí) Smrtí" | fzf

And which version of Ruby are your running?

from fzf.

harelba avatar harelba commented on August 26, 2024

Installed newest version, still happens. like i sai, the example above did not immediately break Ctrl-r, it's just the only non-ascii data i've actually wrote in the terminal.

/home/harel/.fzf/fzf:446:in `=~': invalid byte sequence in UTF-8 (ArgumentError)"s/ *[0-9]* *//")
    from /home/harel/.fzf/fzf:446:in `trim'
    from /home/harel/.fzf/fzf:380:in `format'
    from /home/harel/.fzf/fzf:681:in `block (2 levels) in update_list'
    from /home/harel/.fzf/fzf:675:in `each'
    from /home/harel/.fzf/fzf:675:in `each_with_index'
    from /home/harel/.fzf/fzf:675:in `block in update_list'
    from /home/harel/.fzf/fzf:695:in `call'
    from /home/harel/.fzf/fzf:695:in `block in start_renderer'

ruby version:
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

from fzf.

junegunn avatar junegunn commented on August 26, 2024

Thanks for the info. The exception was thrown inside trim method which is only called when the length of an item is wider than the screen width. And the failing regex match was made to determine the width of a character. I've just updated the code to ignore the error and simply assume that the width is 1. So it's not the ultimate fix to the underlying problem, but I think it's harmless.

Could you update and test again? Should work fine.

from fzf.

junegunn avatar junegunn commented on August 26, 2024

I believe this has been fixed. Please reopen if you see this problem again. Thanks.

from fzf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.