Bug#342845: vim-gtk: Inconsistent operation (menu vs. command line) for :close

Helge Kreutzmann kreutzm at itp.uni-hannover.de
Sun Dec 11 08:10:55 UTC 2005


Package: vim-gtk
Version: 1:6.3-071+1
Severity: normal
Tags: upstream

I first noticed it in the Win32 port, but it is perfectly reproducible
on Debian as well, thats why I tagged it upstream.

The following two sequences behave differently, although they should
not:

a) echo "Hello" > /tmp/tfile
   gvim /tmp/tfile
   :close

a) echo "Hello" > /tmp/tfile
   gvim /tmp/tfile
   File->Close

In the first case, an error message is printed:
E444: Cannot close last window  
and the file remains in the window.

In the second case, the window is closed (but not gvim!) as expected,
without any error message.

From reading the help, I think a) is correct, although I'd prefer b)
because I sometimes (at least under this other OS) like to have an
"empty" vim laying around (e.g., for quick copy and paste and then
edit), so once I finished and save, I'd like to get an "empty" window
without having to restart vim. Since the behaviour of the (last) close
is highly application specific[1], the resolution could be to switch case
a) to the same behaviour as b) (but probably upstream had a reason for
a)).

[1] Compare acrobat, konqueror and firefox/mozilla

-- System Information:
Debian Release: 3.1
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.11.deb-7-grsec
Locale: LANG=de_DE at euro, LC_CTYPE=de_DE at euro (charmap=ISO-8859-15)

Versions of packages vim-gtk depends on:
ii  libatk1.0-0        1.8.0-4               The ATK accessibility toolkit
ii  libc6              2.3.2.ds1-22          GNU C Library: Shared libraries an
ii  libglib2.0-0       2.6.4-1               The GLib library of C routines
ii  libgpmg1           1.19.6-19sarge1       General Purpose Mouse - shared lib
ii  libgtk2.0-0        2.6.4-3.1             The GTK+ graphical user interface 
ii  libice6            4.3.0.dfsg.1-14sarge1 Inter-Client Exchange library
ii  libncurses5        5.4-4                 Shared libraries for terminal hand
ii  libpango1.0-0      1.8.1-1               Layout and rendering of internatio
ii  libsm6             4.3.0.dfsg.1-14sarge1 X Window System Session Management
ii  libx11-6           4.3.0.dfsg.1-14sarge1 X Window System protocol client li
ii  libxt6             4.3.0.dfsg.1-14sarge1 X Toolkit Intrinsics
ii  vim                1:6.3-071+1           Vi IMproved - enhanced vi editor
ii  xlibs              4.3.0.dfsg.1-14sarge1 X Keyboard Extension (XKB) configu

-- no debconf information
-- 
Dr. Helge Kreutzmann, Dipl.-Phys.           Helge.Kreutzmann at itp.uni-hannover.de
                       gpg signed mail preferred 
    64bit GNU powered                  http://www.itp.uni-hannover.de/~kreutzm
          Help keep free software "libre": http://www.ffii.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20051211/896bf45b/attachment.pgp


More information about the pkg-vim-maintainers mailing list