Using the latest vim73, changeset c945fdb34ce3, Wed Aug 04 20:55:44
2010 +0200, the two windows of a vimdiff display can get out of
sync.

To demonstrate the problem, cd to the vim/src directory and execute
this command.

    vim -d -N -u NONE -i NONE <(hg cat -r ae22c450546c if_cscope.c) <(hg cat -r 
4269a0673478 if_cscope.c)

The results are affected by the size of the changed regions and the
number of lines in the terminal.  For this example, I used an 80x24
xterm.

The cursor will be in the upper left corner of the left window.
Type j 6 times and the cursor will move down the window as it
should.  Type j again so that the cursor enters the top of the added
lines and observe that the right window scrolls down and is no
longer aligned with the left window.  Type k and observe that the
right window scrolls up but is still not aligned.  Type k again and
the right window continues to scroll up, one line at a time, until
the cursor reaches the top of the left window, at which point the
two windows are again properly aligned.


:version
VIM - Vi IMproved 7.3e BETA (2010 Aug 4, compiled Aug  4 2010 13:24:29)
Compiled by garyj...@...
Normal version with GTK2 GUI.  Features included (+) or not (-):
-arabic +autocmd +balloon_eval +browse +builtin_terms +byte_offset +cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui +diff
+digraphs +dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi
+file_in_path +find_in_path +float +folding -footer +fork() +gettext
-hangul_input +iconv +insert_expand +jumplist -keymap -langmap +libcall
+linebreak +lispindent +listcmds +localmap -lua +menu +mksession +modify_fname
+mouse +mouseshape -mouse_dec +mouse_gpm -mouse_jsbterm -mouse_netterm
-mouse_sysmouse +mouse_xterm +multi_byte +multi_lang -mzscheme +netbeans_intg
-osfiletype +path_extra -perl +persistent_undo +postscript +printer -profile
-python -python3 +quickfix +reltime -rightleft -ruby +scrollbind +signs
+smartindent -sniff +startuptime +statusline -sun_workshop +syntax +tag_binary
+tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects +title
 +toolbar +user_commands +vertsplit +virtualedit +visual +visualextra +viminfo
+vreplace +wildignore +wildmenu +windows +writebackup +X11 -xfontset +xim
+xsmp_interact +xterm_clipboard -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  system gvimrc file: "$VIM/gvimrc"
    user gvimrc file: "$HOME/.gvimrc"
    system menu file: "$VIMRUNTIME/menu.vim"
  fall-back for $VIM: "/home/garyjohn/src/Linux/vim-7.3-hg/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK  -DXTHREADS -D_RE
ENTRANT -DXUSE_MTSAFE_API -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/u
sr/X11R6/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/include/
freetype2 -I/usr/include/freetype2/config -I/usr/include/glib-2.0 -I/usr/lib/gli
b-2.0/include     -g -O2  -I/usr/X11R6/include
Linking: gcc  -L/usr/X11R6/lib   -L/usr/local/lib -o vim   -Wl,--export-dynamic
-lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0 -lpangox-1
.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0   -lXt -lm -lncurses -lsel
inux -lacl -lgpm


OS is RHEL4.

Regards,
Gary

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

Raspunde prin e-mail lui