Menu

#1057 Characters to type for autocompletion does not take into account UTF-8 variable char width

None
open-accepted
nobody
None
v1.25
5
2014-07-22
2014-07-22
No

In Edit->Preferences, there is a setting called "Characters to type for autocompletion". If I set it to 4, it will take 4 Latin characters to show the autocomplete combo box, but only 2 Cyrillic characters. I'm assuming this is because a Cyrillic character is encoded using 2 UTF-8 bytes.

Related

Bugs: #1057

Discussion

  • Lex Trotman

    Lex Trotman - 2014-07-22
    • status: open --> open-accepted
     
  • Lex Trotman

    Lex Trotman - 2014-07-22

    Yes, it counts bytes, not characters.

     
    • Alexander Almaleh

      Can you point out where in the code is this? I might try to make a fix myself, but it would be easier if I don't have to search for the code where the action happens.

       
      • Lex Trotman

        Lex Trotman - 2014-10-01

        https://github.com/geany/geany/blob/master/src/editor.c#L2215

        On 20 September 2014 20:00, Alexander Almaleh sashoalm@users.sf.net wrote:

        Can you point out where in the code is this? I might try to make a fix
        myself, but it would be easier if I don't have to search for the code where
        the action happens.


        [bugs:#1057] Characters to type for autocompletion does not take into
        account UTF-8 variable char width

        Status: open-accepted
        Found in: v1.25
        Fixed in: None
        Created: Tue Jul 22, 2014 12:49 PM UTC by Alexander Almaleh
        Last Updated: Tue Jul 22, 2014 10:17 PM UTC
        Owner: nobody

        In Edit->Preferences, there is a setting called "Characters to type for
        autocompletion". If I set it to 4, it will take 4 Latin characters to show
        the autocomplete combo box, but only 2 Cyrillic characters. I'm assuming
        this is because a Cyrillic character is encoded using 2 UTF-8 bytes.


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/geany/bugs/1057/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #1057


Log in to post a comment.