Loading ...
Sorry, an error occurred while loading the content.

56481bug with getpos("'>")[2] with multibyte charactor?

Expand Messages
  • Yue Wu
    Apr 3, 2010
    • 0 Attachment
      Hi list,

      Don't know if it's a bug or feature, but when in visual mode, if I select just
      one multibyte charactor, say "我", getpos("'>")[2] will return a value the
      same as getpos("'<")[2], but in fact, a multibyte should occupy multi columns
      so it should be a value larger than getpos("'<")[2]'s.

      Yue Wu

      Key Laboratory of Modern Chinese Medicines
      Department of Traditional Chinese Medicine
      China Pharmaceutical University
      No.24, Tongjia Xiang Street, Nanjing 210009, China

      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php

      To unsubscribe, reply using "remove me" as the subject.
    • Show all 3 messages in this topic