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

Re: Broken display when insert characters in wrapped command line.

Expand Messages
  • Bram Moolenaar
    ... Thanks. I ll add it to the todo list. -- So this is it, said Arthur, we are going to die. Yes, said Ford, except...no! Wait a minute! He
    Message 1 of 2 , Sep 27, 2011
    • 0 Attachment
      Yasuhiro Matsumoto wrote:

      > When type long multibyte characters in command line over &columns, you can
      > see wrapped text.
      >
      > : $B$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$" (B>
      > $B$"$" (B
      >
      > http://go-gyazo.appspot.com/c1a5a1035c325ed0.png
      >
      > And type <left>.
      >
      > : $B$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$" (B>
      > $B$" (B_ $B$" (B
      >
      > http://go-gyazo.appspot.com/55bd9ec8e5d5634b.png
      >
      > Cursor is under "_". And if type " $B$$ (B", we will expect following.
      >
      > : $B$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$" (B>
      > $B$"$$ (B_ $B$& (B
      >
      > http://go-gyazo.appspot.com/081dab58c5519807.png
      >
      > But it become:
      >
      > : $B$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$"$" (B>
      > $B$"$"$$ (B_ $B$& (B
      >
      > http://go-gyazo.appspot.com/b9c17a1c5cfca238.png
      >
      > In ex_getln.c:2873, calling draw_cmdline(), draw_cmdline() is display first
      > argument at msg_col/msg_row.
      > But it don't care that msg_col/msg_row is pointed cursor.
      > It should be corrected.
      >
      > Below is a patch. Please check and include.
      >
      > https://gist.github.com/1244951
      >
      > diff -r 5e84f6567623 src/ex_getln.c
      > --- a/src/ex_getln.c Wed Sep 21 20:09:42 2011 +0200
      > +++ b/src/ex_getln.c Tue Sep 27 15:25:10 2011 +0900
      > @@ -2870,6 +2870,7 @@
      > {
      > msg_no_more = TRUE;
      > i = cmdline_row;
      > + cursorcmd();
      > draw_cmdline(ccline.cmdpos, ccline.cmdlen - ccline.cmdpos);
      > /* Avoid clearing the rest of the line too often. */
      > if (cmdline_row != i || ccline.overstrike)

      Thanks. I'll add it to the todo list.

      --
      "So this is it," said Arthur, "we are going to die."
      "Yes," said Ford, "except...no! Wait a minute!" He suddenly lunged across
      the chamber at something behind Arthur's line of vision. "What's this
      switch?" he cried.
      "What? Where?" cried Arthur, twisting around.
      "No, I was only fooling," said Ford, "we are going to die after all."
      -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ an exciting new programming language -- http://www.Zimbu.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --
      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
    Your message has been successfully submitted and would be delivered to recipients shortly.