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

Issue 222 in vim: Paragraph motions should ignore whitespace

Expand Messages
  • vim@...
    Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 222 by matthewe...@gmail.com: Paragraph motions should ignore whitespace
    Message 1 of 3 , May 8 2:17 AM
      Status: New
      Owner: ----
      Labels: Type-Defect Priority-Medium

      New issue 222 by matthewe...@...: Paragraph motions should ignore
      whitespace
      http://code.google.com/p/vim/issues/detail?id=222

      What steps will reproduce the problem?
      1. Insert text with paragraphs separated by lines consisting of a single
      space character.
      2. Use { and } to skip between paragraphs.

      What is the expected output? What do you see instead?

      The { and } motions should stop at the whitespace only lines. This is
      consistent with the paragraph text-object which delimits paragraphs with
      whitespace only lines.

      What version of the product are you using? On what operating system?

      7.4, Linux

      Please provide any additional information below.

      Wrapping the ml_get() call in startPS() (in search.c) with skipwhite()
      fixes the problem. If we're worried about backward compatibility perhaps a
      flag could be used to turn this behavior on.


      Attachments:
      fix_vim_paragraph_motions.diff 360 bytes

      --
      You received this message because this project is configured to send all
      issue notifications to this address.
      You may adjust your notification preferences at:
      https://code.google.com/hosting/settings

      --
      --
      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

      ---
      You received this message because you are subscribed to the Google Groups "vim_dev" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/d/optout.
    • vim@...
      Comment #1 on issue 222 by 676c7...@gmail.com: Paragraph motions should ignore whitespace http://code.google.com/p/vim/issues/detail?id=222 Hey, I did some
      Message 2 of 3 , May 8 7:52 AM
        Comment #1 on issue 222 by 676c7...@...: Paragraph motions should
        ignore whitespace
        http://code.google.com/p/vim/issues/detail?id=222

        Hey,

        I did some research for you. Previous disco @

        https://groups.google.com/d/msg/vim_dev/8HShAdoMUSw/CmETEeArSVUJ
        https://groups.google.com/d/msg/vim_use/eMRBf_7nj50/4od47U3bpb4J
        https://groups.google.com/d/msg/vim_use/2GJQFanj4mE/4xLlx52o73QJ

        Best,


        --
        You received this message because this project is configured to send all
        issue notifications to this address.
        You may adjust your notification preferences at:
        https://code.google.com/hosting/settings

        --
        --
        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

        ---
        You received this message because you are subscribed to the Google Groups "vim_dev" group.
        To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
        For more options, visit https://groups.google.com/d/optout.
      • vim@...
        Comment #2 on issue 222 by matthewe...@gmail.com: Paragraph motions should ignore whitespace http://code.google.com/p/vim/issues/detail?id=222 Thanks for the
        Message 3 of 3 , May 9 2:15 AM
          Comment #2 on issue 222 by matthewe...@...: Paragraph motions should
          ignore whitespace
          http://code.google.com/p/vim/issues/detail?id=222

          Thanks for the info. I'll be sure to check the mailing lists in future
          before reporting a bug (I wasn't aware of the correct procedure).

          It looks like the first thread died even though a patch was suggested?
          Anyway, it could be that using a plugin (eg.
          http://www.vim.org/scripts/script.php?script_id=3952) may be the best
          option to avoid excessive changes to the core.

          --
          You received this message because this project is configured to send all
          issue notifications to this address.
          You may adjust your notification preferences at:
          https://code.google.com/hosting/settings

          --
          --
          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

          ---
          You received this message because you are subscribed to the Google Groups "vim_dev" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
          For more options, visit https://groups.google.com/d/optout.
        Your message has been successfully submitted and would be delivered to recipients shortly.