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

4512draw_part_cursor covered by subsequent draw_string?

Expand Messages
  • Jjgod Jiang
    Jul 20, 2007
    • 0 Attachment
      Hi,

      I just find that in insert mode, every time vim tries to draw a
      part cursor (to indicate the insertion point), there is a draw_string
      call following it at exactly the same place, for example:

      2007-07-21 05:02:50.293 Vim[9150] insertText: a
      gui_mch_draw_string: (0, 8, 1)
      2007-07-21 05:02:50.294 Vim[9150] ' '
      gui_mch_draw_string: (0, 8, 1)
      2007-07-21 05:02:50.294 Vim[9150] 'a'
      gui_mch_draw_part_cursor: 3, 20 (0, 9)
      gui_mch_draw_string: (0, 9, 1)
      2007-07-21 05:02:50.295 Vim[9150] ' '

      This trace means after I pressed 'a', there will be a draw_string call
      to draw ' ' in column 8, then a draw_string call to call 'a' in column 8,
      then a draw_part_cursor call to draw cursor in column 9, then a
      draw_string call to draw ' ' in column 9.

      The problem is, if I draw the cursor in column 9, it will be fully
      covered by the subsequence draw_string call in column 9, because
      it will draw a space thus clear that rectangle with background color
      again.

      I'm really curious about how is that getting solved by terminals and
      other GUI port.

      - Jiang

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_mac" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    • Show all 4 messages in this topic