Bug#846993: vim-gtk3: vimdiff does not compare last lines if editing changes lines

Helge Kreutzmann debian at helgefjell.de
Sun Dec 4 20:25:41 UTC 2016


Package: vim-gtk3
Version: 2:8.0.0095-1
Severity: normal

Hello,
I often run vimdiff on files which are almost the same, unfortunately
the major difference are line breaks. So I need to manually align line
breaks to actually see the true differences.

At some stage I align the line breaks for the last line. Often, the
last line in both files are the same or very similar, however, vimdiff 
does not show this anymore (it does in older versions).

I created the following artifical test case to illustrate the problem
(cf. the attached files datei1 and datei2).

Run:
vimdiff -u NONE -U NONE -N datei1 datei2

And execute the following key sequence:
Shift-J e → a <Enter> <Esc> Shift-J e → a <Enter>

The last two lines are now identical (they only contain the word
»rows«), but vimdiff (in the current version) does not show this. 

(This is an artifical case, ordinarily the last line contains many
words, so it is not easy to spot if they are actually identical). 

To really see the a proper diff, you need to save the changed file,
quit vim and rerun the vimdiff command from above.

-- Package-specific info:

--- real paths of main Vim binaries ---
/usr/bin/vi is /usr/bin/vim.gtk3
/usr/bin/vim is /usr/bin/vim.gtk3
/usr/bin/gvim is /usr/bin/vim.gtk3

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.5.5samd.10-grsec (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to de_DE.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages vim-gtk3 depends on:
ii  libacl1              2.2.52-3
ii  libc6                2.24-7
ii  libcairo2            1.14.6-1.1
ii  libgdk-pixbuf2.0-0   2.36.0-1
ii  libglib2.0-0         2.50.2-2
ii  libgpm2              1.20.4-6.2
ii  libgtk-3-0           3.22.4-1
ii  libice6              2:1.0.9-1+b1
ii  liblua5.2-0          5.2.4-1.1+b1
ii  libpango-1.0-0       1.40.3-3
ii  libpangocairo-1.0-0  1.40.3-3
ii  libperl5.24          5.24.1~rc4-1
ii  libpython3.5         3.5.2-8
ii  libruby2.3           2.3.1-6
ii  libselinux1          2.6-3
ii  libsm6               2:1.2.2-1+b1
ii  libtcl8.6            8.6.6+dfsg-1
ii  libtinfo5            6.0+20160917-1
ii  libx11-6             2:1.6.3-1
ii  libxt6               1:1.1.5-1
ii  vim-common           2:8.0.0095-1
ii  vim-gui-common       2:8.0.0095-1
ii  vim-runtime          2:8.0.0095-1

vim-gtk3 recommends no packages.

Versions of packages vim-gtk3 suggests:
pn  cscope            <none>
ii  fonts-dejavu      2.37-1
pn  gnome-icon-theme  <none>
ii  vim-doc           2:8.0.0095-1

-- no debconf information

-- 
      Dr. Helge Kreutzmann                     debian at helgefjell.de
           Dipl.-Phys.                   http://www.helgefjell.de/debian.php
        64bit GNU powered                     gpg signed mail preferred
           Help keep free software "libre": http://www.ffii.de/
-------------- next part --------------
This is
a line with 
four rows
-------------- next part --------------
This is a 
line with five 
rows
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20161204/797b6142/attachment.sig>


More information about the pkg-vim-maintainers mailing list