gvimdiff failing to fold second window intermittently

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

gvimdiff failing to fold second window intermittently

John Little-4
When I start gvimdiff, sometimes it doesn't do folding in the second,
right hand window.

For example, the following was obtained by copying ~/vim/src/option.c
to ~/x.c, then editing x.c (with -u NONE) with normal =G and saving to
y.c, then running

    gvimdiff -u NONE -U NONE -i NONE x.c y.c

then using the mouse to narrow the windows somewhat (to avoid google
groups' wrapping of text):

+ +--239 lines: vi:set ts|  /* vi:set ts=8 sts=4 sw=4:
  #define PV_WRAP        |   *
                         |   * VIM - Vi IMproved    by
                         |   *
  /* WV_ and BV_ values g|   * Do ":help uganda"  in Vi
  typedef enum           |   * Do ":help credits" in Vi
  {                      |   * See README.txt for an ov
      PV_NONE = 0,       |   */
      PV_MAXVAL = 0xffff |
  } idopt_T;             |  /*
                         |   * Code to handle user-sett
  /*                     |   * driven. Checklist for ad
   * Options local to a w|   * - Put it in the options
   * buffers.  Indicate t|   * - For a global option: A
   */                    |   * - For a buffer or window
+ +--119 lines: #define V|   *   - Add a PV_XX entry to
  static long     p_wm_no|   *   - Add a variable to th
  static long     p_sts_n|   *   - For a window option,
  static int      p_ai_no|   *   - For a buffer option,

Sometimes, the right hand window is one big fold:

+ +--239 lines: vi:set ts=8 sts=4 sw=4:-|+ +--10943 lines: vi:set ts=8
sts=4 sw
  #define PV_WRAP         OPT_WIN(WV_WRA|  ~

Using vimdiff does not show the problem.  For a while, failures were
about twice successes, but then I had a burst of 10 failures.

This is 7.2.35, Kubuntu Karmic Huge version with GTK2-GNOME GUI.

Any light? Regards, John

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: gvimdiff failing to fold second window intermittently

Benjamin Fritz


On Feb 12, 9:03 pm, John Little <[hidden email]> wrote:
> When I start gvimdiff, sometimes it doesn't do folding in the second,
> right hand window.
>
> [snip]
>
> This is 7.2.35, Kubuntu Karmic Huge version with GTK2-GNOME GUI.
>

Patch 356 fixed this issue for me (though it introduced one or two a
others that are less annoying). See the thread starting with the patch
announcement on vim_dev if you want details.

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
Reply | Threaded
Open this post in threaded view
|

Re: gvimdiff failing to fold second window intermittently

John Little-4

On Feb 14, 7:06 am, Ben Fritz <[hidden email]> wrote:

> Patch 356 fixed this issue for me (though it introduced one or two a
> others that are less annoying). See the thread starting with the patch
> announcement on vim_dev if you want details.

I've used hg to get to 7.2.359  (BTW, "7.2.35" was a typo, should have
been 7.2.351).  The only change seems to be in the relative frequency
of the failure modes, but that may be spurious.

I've reviewed the 7.2.356 thread in vim_dev, and not much seems to
apply; with this, vimdiff works, gvimdiff doesn't.

This properly belongs in vim_dev, I'll repost there.

Regards, John

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php