Re: [Bulk] List of 2-letter and 3-letter substitute commands

2014-12-19 Fir de Conversatie 'Andy Wokula' via vim_dev

Am 19.12.2014 um 20:29 schrieb 'Andy Wokula' via vim_dev:

What about a help section for the following special commands?

2-letter and 3-letter :substitute commands
==

   List of :substitute commands
   |  cegiInplr
   | c  :sc  :sce :scg :sci :scI :scn :scp :scl  ---
   | e
   | g  :sgc :sge :sg  :sgi :sgI :sgn :sgp :sgl :sgr
   | i  :sic :sie  --- :si  :siI :sin :sip  --- :sir
   | I  :sIc :sIe :sIg :sIi :sI  :sIn :sIp :sIl :sIr
   | n
   | p
   | l
   | r  :src  --- :srg :sri :srI :srn :srp :srl :sr


The single letters are flags, of course.

--
Andy

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Bulk] Re: typo in tag for :help :si

2014-12-19 Fir de Conversatie 'Andy Wokula' via vim_dev

Am 19.12.2014 um 16:55 schrieb Bram Moolenaar:


Yukihiro Nakadaira wrote:


I think that short tag for ":simalt" should be ":sim".

diff -r ab36689121ad runtime/doc/gui_w32.txt
--- a/runtime/doc/gui_w32.txtWed Dec 17 21:00:49 2014 +0100
+++ b/runtime/doc/gui_w32.txtThu Dec 18 19:31:16 2014 +0900
@@ -452,7 +452,7 @@
  You can drag and drop one or more files into the Vim window, where they
will
  be opened as normal.  See |drag-n-drop|.

-*:simalt* *:si*
+*:simalt* *:sim*
  :sim[alt] {key}simulate pressing {key} while holding Alt pressed.
  {not in Vi} {only for Win32 versions}


Actually, :simalt is the first command that starts with :si, thus that
works.  We might as well document it that way:  :si[malt]


I'd rather wish for

*:scr* *:scriptnames*
:scr[iptnames]  List all sourced script names, in the order they were

--
Andy

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


List of 2-letter and 3-letter substitute commands

2014-12-19 Fir de Conversatie 'Andy Wokula' via vim_dev

What about a help section for the following special commands?

2-letter and 3-letter :substitute commands
==

  List of :substitute commands
  |  cegiInplr
  | c  :sc  :sce :scg :sci :scI :scn :scp :scl  ---
  | e
  | g  :sgc :sge :sg  :sgi :sgI :sgn :sgp :sgl :sgr
  | i  :sic :sie  --- :si  :siI :sin :sip  --- :sir
  | I  :sIc :sIe :sIg :sIi :sI  :sIn :sIp :sIl :sIr
  | n
  | p
  | l
  | r  :src  --- :srg :sri :srI :srn :srp :srl :sr
  Exceptions:
  :scr  is  :scriptnames
  :se   is  :set
  :sig  is  :sign
  :sil  is  :silent
  :sn   is  :snext
  :sp   is  :split
  :sl   is  :sleep
  :sre  is  :srewind

--
Andy

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Bulk] Vim 2015 calendar available

2014-12-19 Fir de Conversatie 'Andy Wokula' via vim_dev

Am 19.12.2014 um 15:27 schrieb Bram Moolenaar:


Hello Vim users,

I have updated the handy desktop calendar for 2015.  It prints on one
sheet of paper and, after folding and applying a bit of glue, stands on
your desk.

It is available in English and Dutch.  You can find the PDF files on my
website: http://moolenaar.net/#Calendar

If you are doing your Christmas shopping on Amazon, please consider
using the links on this page: http://www.iccf.nl/click1.html
A percentage of the sales will go to Vim's charity, helping children in
Uganda, and it doesn't cost you anything.

Otherwise, consider making a donation: http://www.iccf.nl/donate.html
And for a very special Christmas present: Sponsor a child!
http://www.iccf.nl/sponsor.html

Happy Vimming!


What about a German (localized) version?

--
Andy

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Bulk] Re: typo in tag for :help :si

2014-12-19 Fir de Conversatie 'Andy Wokula' via vim_dev

Am 19.12.2014 um 16:55 schrieb Bram Moolenaar:


Yukihiro Nakadaira wrote:


I think that short tag for ":simalt" should be ":sim".

diff -r ab36689121ad runtime/doc/gui_w32.txt
--- a/runtime/doc/gui_w32.txtWed Dec 17 21:00:49 2014 +0100
+++ b/runtime/doc/gui_w32.txtThu Dec 18 19:31:16 2014 +0900
@@ -452,7 +452,7 @@
  You can drag and drop one or more files into the Vim window, where they
will
  be opened as normal.  See |drag-n-drop|.

-*:simalt* *:si*
+*:simalt* *:sim*
  :sim[alt] {key}simulate pressing {key} while holding Alt pressed.
  {not in Vi} {only for Win32 versions}


Actually, :simalt is the first command that starts with :si, thus that
works.  We might as well document it that way:  :si[malt]


:si  is  :s  with  `i' flag.

--
Andy

--
--
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [PATCH] :0argedit doesn't prepend like :0argadd does

2014-12-19 Fir de Conversatie Bram Moolenaar

Ingo Karkat wrote:

> Hello Vim developers,
> 
> :0argedit foo should insert a first argument like :0argadd foo does, but
> it actually puts the argument *after* the first one, at position 2.
> 
> ,[ :help :argedit ]
> | [count] is used like with |:argadd|.
> `
> 
> Attached patch fixes that, and adds a test for this.

Thanks!

-- 
If they don't keep on exercising their lips, he thought, their brains
start working.
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Can't input some greek letters on vim.exe & encoding=utf-8

2014-12-19 Fir de Conversatie Bram Moolenaar

Yasuhiro Matsumoto wrote:

> Hi list.
> 
> vim.exe can't handle greek characters when encoding is utf-8. ex: β
> 
> In utf-8 encoding, β is 0xCE 0xB2. 0xCE is K_NUL. But it's not a tailing byte.
> K_NUL must be escaped when it is contained in input bytes. But it
> don't need to escape when it's a leading byte.  Below is a patch.
> 
> https://gist.github.com/783f0df279cadd04500e

Thanks!

-- 
Far back in the mists of ancient time, in the great and glorious days of the
former Galactic Empire, life was wild, rich and largely tax free.
Mighty starships plied their way between exotic suns, seeking adventure and
reward among the furthest reaches of Galactic space.  In those days, spirits
were brave, the stakes were high, men were real men, women were real women
and small furry creatures from Alpha Centauri were real small furry creatures
from Alpha Centauri.  And all dared to brave unknown terrors, to do mighty
deeds, to boldly split infinitives that no man had split before -- and thus
was the Empire forged.
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: typo in tag for :help :si

2014-12-19 Fir de Conversatie Bram Moolenaar

Yukihiro Nakadaira wrote:

> I think that short tag for ":simalt" should be ":sim".
> 
> diff -r ab36689121ad runtime/doc/gui_w32.txt
> --- a/runtime/doc/gui_w32.txtWed Dec 17 21:00:49 2014 +0100
> +++ b/runtime/doc/gui_w32.txtThu Dec 18 19:31:16 2014 +0900
> @@ -452,7 +452,7 @@
>  You can drag and drop one or more files into the Vim window, where they
> will
>  be opened as normal.  See |drag-n-drop|.
> 
> -*:simalt* *:si*
> +*:simalt* *:sim*
>  :sim[alt] {key}simulate pressing {key} while holding Alt pressed.
>  {not in Vi} {only for Win32 versions}

Actually, :simalt is the first command that starts with :si, thus that
works.  We might as well document it that way:  :si[malt]

-- 
For a moment, nothing happened.
Then, after a second or so, nothing continued to happen.
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [PATCH] On Windows, GVIM's window size increases when changing menus while minimized

2014-12-19 Fir de Conversatie Bram Moolenaar

Ingo Karkat wrote:

> Hello Vim developers,
> 
> this has been bugging me for a long time; I finally found the root
> cause. I use --remote {file} to open a file in an existing GVIM
> instance. When that instance had been minimized (:suspend), GVIM would
> come up with 'lines' increased by two when put to the foreground again.
> So, the vertical window size of GVIM would grow with each file opened!
> 
> I found out that this is caused by plugins like MruMenu and the built-in
> Buffers menu, which hook into BufNew / BufRead and then re-build their
> menu. It can be reproduced via the following command sequence:
> 
> gvim -N -u NONE -c "echomsg 'before:' &lines" -c "suspend"
> gvim -N -u NONE --server GVIM --remote-send
> ":an testing.foo Nop>"
> gvim -N -u NONE --server GVIM --remote-send
> ":call foreground()echomsg 'after:' &linesmessages"
> 
> 
> When a top-level menu item is affected, Vim invokes
> gui_mswin_get_menu_height(); when GVIM is minimized, the Win32 functions
> cannot determine the current menu height, which bases the following
> resizing on wrong sizes, and that increases the window height.
> 
> Attached patch adds a condition for minimized Vim and returns the
> (already saved) previous menu height in that case. With that, the
> problem is gone.

I'm glad you managed to find a fix for this.  I'll add it to the todo
list.

-- 
Far out in the uncharted backwaters of the unfashionable end of the
Western Spiral arm of the Galaxy lies a small unregarded yellow sun.
Orbiting this at a distance of roughly ninety-eight million miles is an
utterly insignificant little blue-green planet whose ape-descended life
forms are so amazingly primitive that they still think digital watches
are a pretty neat idea ...
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[PATCH] :0argedit doesn't prepend like :0argadd does

2014-12-19 Fir de Conversatie Ingo Karkat
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello Vim developers,

:0argedit foo should insert a first argument like :0argadd foo does, but
it actually puts the argument *after* the first one, at position 2.

,[ :help :argedit ]
| [count] is used like with |:argadd|.
`

Attached patch fixes that, and adds a test for this.

- -- regards, ingo
- -- 
  -- Ingo Karkat --  /^-- /^-- /^-- /^-- /^-- http://ingo-karkat.de/ --
  --   http://vim.sourceforge.net/account/profile.php?user_id=9713   --
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (MingW32)

iQEcBAEBAgAGBQJUlEH3AAoJEA7ziXlAzQ/vr8YH/Rp2/saQynpUTYI4YQY3nQnV
NvxtI4M1wWZHKAgbTPWGPvZtydNwJWo/8wG2iZ6lh3Hzz769OyZPndLqy+bqm8Ws
pb8GrucGcjEp7dCR/fBvW76xowkPtaIDw6NUkeugWWlrkJYQQft6OQU3pkfvjxu8
hTbE/RiDRGJuBfxCaU0/w42dX/kRQ4CeD6fquUWXNKFLFGaY/AsqIx/fvV6LpacI
Js1tNqtm0n5UNEsqrHbd+pJUdg7h5CSeRlynqnZwETYvqzgWoCeRzl8V5THOgGFZ
KWLYez1JsdtRep53zLRyKDGx64mrPFwbBMcy+ixvwL1c5Nnj9MghdjbxuSfwtwQ=
=Yuvq
-END PGP SIGNATURE-

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/ex_cmds.h b/src/ex_cmds.h
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -136,7 +136,7 @@ EX(CMD_argdo,		"argdo",	ex_listdo,
 			BANG|NEEDARG|EXTRA|NOTRLCOM,
 			ADDR_LINES),
 EX(CMD_argedit,		"argedit",	ex_argedit,
-			BANG|NEEDARG|RANGE|NOTADR|FILE1|EDITCMD|ARGOPT|TRLBAR,
+			BANG|NEEDARG|RANGE|NOTADR|ZEROR|FILE1|EDITCMD|ARGOPT|TRLBAR,
 			ADDR_ARGUMENTS),
 EX(CMD_argglobal,	"argglobal",	ex_args,
 			BANG|FILES|EDITCMD|ARGOPT|TRLBAR,
diff --git a/src/Makefile b/src/Makefile
--- a/src/Makefile
+++ b/src/Makefile
@@ -1891,6 +1891,7 @@ unittest unittests: $(UNITTEST_TARGETS)
 
 # Run individual test, assuming that Vim was already compiled.
 test1 \
+	test_argument_0count \
 	test_argument_count \
 	test_autoformat_join \
 	test_breakindent \
diff --git a/src/testdir/Make_amiga.mak b/src/testdir/Make_amiga.mak
--- a/src/testdir/Make_amiga.mak
+++ b/src/testdir/Make_amiga.mak
@@ -36,6 +36,7 @@ SCRIPTS = test1.out test3.out test4.out 
 		test94.out test95.out test96.out test97.out test98.out \
 		test99.out test100.out test101.out test102.out test103.out \
 		test104.out test105.out test106.out test107.out \
+		test_argument_0count.out \
 		test_argument_count.out \
 		test_autoformat_join.out \
 		test_breakindent.out \
@@ -175,6 +176,7 @@ test104.out: test104.in
 test105.out: test105.in
 test106.out: test106.in
 test107.out: test107.in
+test_argument_0count.out: test_argument_0count.in
 test_argument_count.out: test_argument_count.in
 test_autoformat_join.out: test_autoformat_join.in
 test_breakindent.out: test_breakindent.in
diff --git a/src/testdir/Make_dos.mak b/src/testdir/Make_dos.mak
--- a/src/testdir/Make_dos.mak
+++ b/src/testdir/Make_dos.mak
@@ -35,6 +35,7 @@ SCRIPTS =	test3.out test4.out test5.out 
 		test94.out test95.out test96.out test98.out test99.out \
 		test100.out test101.out test102.out test103.out test104.out \
 		test105.out test106.out  test107.out\
+		test_argument_0count.out \
 		test_argument_count.out \
 		test_autoformat_join.out \
 		test_breakindent.out \
diff --git a/src/testdir/Make_ming.mak b/src/testdir/Make_ming.mak
--- a/src/testdir/Make_ming.mak
+++ b/src/testdir/Make_ming.mak
@@ -57,6 +57,7 @@ SCRIPTS =	test3.out test4.out test5.out 
 		test94.out test95.out test96.out test98.out test99.out \
 		test100.out test101.out test102.out test103.out test104.out \
 		test105.out test106.out test107.out \
+		test_argument_0count.out \
 		test_argument_count.out \
 		test_autoformat_join.out \
 		test_breakindent.out \
diff --git a/src/testdir/Make_os2.mak b/src/testdir/Make_os2.mak
--- a/src/testdir/Make_os2.mak
+++ b/src/testdir/Make_os2.mak
@@ -37,6 +37,7 @@ SCRIPTS = test1.out test3.out test4.out 
 		test94.out test95.out test96.out test98.out test99.out \
 		test100.out test101.out test102.out test103.out test104.out \
 		test105.out test106.out test107.out \
+		test_argument_0count.out \
 		test_argument_count.out \
 		test_autoformat_join.out \
 		test_breakindent.out \
diff --git a/src/testdir/Make_vms.mms b/src/testdir/Make_vms.mms
--- a/src/testdir/Make_vms.mms
+++ b/src/testdir/Make_vms.mms
@@ -96,6 +96,7 @@ SCRIPT = test1.out  test2.out  test3.out
 	 test95.out test96.out test98.out test99.out \
 	 test100.out test101.out test103.out test104.out \
 	 test105.out test106.out test107.out \
+	 test_argument_0count.out \
 	 test_argument_count.out \
 	 test_autoformat_join.out \
 	 test_breakindent.out \
diff --git a/src/testdir/Makefile b/src/testdir/Makefile
--- a/src/testdir/Makefile
+++ b/src/testdir/Makefile
@@ -33

Vim 2015 calendar available

2014-12-19 Fir de Conversatie Bram Moolenaar

Hello Vim users,

I have updated the handy desktop calendar for 2015.  It prints on one
sheet of paper and, after folding and applying a bit of glue, stands on
your desk.

It is available in English and Dutch.  You can find the PDF files on my
website: http://moolenaar.net/#Calendar

If you are doing your Christmas shopping on Amazon, please consider
using the links on this page: http://www.iccf.nl/click1.html
A percentage of the sales will go to Vim's charity, helping children in
Uganda, and it doesn't cost you anything.

Otherwise, consider making a donation: http://www.iccf.nl/donate.html
And for a very special Christmas present: Sponsor a child!
http://www.iccf.nl/sponsor.html

Happy Vimming!

-- 
I started out with nothing, and I still have most of it.
-- Michael Davis -- "Tonight Show"

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[PATCH] On Windows, GVIM's window size increases when changing menus while minimized

2014-12-19 Fir de Conversatie Ingo Karkat
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello Vim developers,

this has been bugging me for a long time; I finally found the root
cause. I use --remote {file} to open a file in an existing GVIM
instance. When that instance had been minimized (:suspend), GVIM would
come up with 'lines' increased by two when put to the foreground again.
So, the vertical window size of GVIM would grow with each file opened!

I found out that this is caused by plugins like MruMenu and the built-in
Buffers menu, which hook into BufNew / BufRead and then re-build their
menu. It can be reproduced via the following command sequence:

gvim -N -u NONE -c "echomsg 'before:' &lines" -c "suspend"
gvim -N -u NONE --server GVIM --remote-send
":an testing.foo Nop>"
gvim -N -u NONE --server GVIM --remote-send
":call foreground()echomsg 'after:' &linesmessages"


When a top-level menu item is affected, Vim invokes
gui_mswin_get_menu_height(); when GVIM is minimized, the Win32 functions
cannot determine the current menu height, which bases the following
resizing on wrong sizes, and that increases the window height.

Attached patch adds a condition for minimized Vim and returns the
(already saved) previous menu height in that case. With that, the
problem is gone.

- -- regards, ingo
- -- 
  -- Ingo Karkat --  /^-- /^-- /^-- /^-- /^-- http://ingo-karkat.de/ --
  --   http://vim.sourceforge.net/account/profile.php?user_id=9713   --
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (MingW32)

iQEcBAEBAgAGBQJUlC9KAAoJEA7ziXlAzQ/vaMkH/2MsWE96R3TIXsJ3rR5r6Qs0
PMksdBxkc2MOlkKkz3pPvLBFNV+Y9jdi4E0wrUR2zap17Ltzw//xcCrURXyzCg3i
7tVW2RqDUg3Xhs9E9A8THRmE68yp/38M+s8nqopxefcWHn9+SwnL39gmjpmOEoWc
ryeVN938lH7OXLK/fKmOE3l2IM0elQDHNLc3aHKz3VIapR8ZzAwoJq0NzHKeoMdZ
jvVHp2f+HWK7ln4HsPqkYk/gplh2n15JYfAlZM3YwPABy6i90UNS3umG669ltDN4
Djb1acH5low07MSC38uubNR0uNELJsk2oVGVf+cwYr1aFApywuOn6mCybGyGZGQ=
=f6l6
-END PGP SIGNATURE-

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
diff --git a/src/gui_w32.c b/src/gui_w32.c
--- a/src/gui_w32.c
+++ b/src/gui_w32.c
@@ -598,6 +598,16 @@ gui_mswin_get_menu_height(
 
 if (num == 0)
 	menu_height = 0;
+else if (IsMinimized(s_hwnd))
+{
+	/*
+	 * The height of the menu cannot be determined while the window is
+	 * minimized.  Take the previous height if the menu is changed in that
+	 * state, to avoid that Vim's vertical window size accidentally
+	 * increases due to the unaccounted-for menu height.
+	 */
+	menu_height = old_menu_height == -1 ? 0 : old_menu_height;
+}
 else
 {
 	if (is_winnt_3())	/* for NT 3.xx */
@@ -644,9 +654,9 @@ gui_mswin_get_menu_height(
 
 if (fix_window && menu_height != old_menu_height)
 {
-	old_menu_height = menu_height;
 	gui_set_shellsize(FALSE, FALSE, RESIZE_VERT);
 }
+old_menu_height = menu_height;
 
 return menu_height;
 }


bug-lines-increased-amenu-minimized.patch.sig
Description: Binary data


Re: Find Bugs

2014-12-19 Fir de Conversatie Ingo Karkat
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 19-Dec-2014 08:07, Antonio Giovanni Colombo wrote:
> Hi Guilherme, have a look from inside a Vim session at:
> 
> :help todo
> 
> There is plenty of stuff listed there.

I also welcome your willingness to fix some bugs (and there's plenty
of them), thanks!

You'll find a more up-to-date version of the todo list at

https://vim.googlecode.com/hg/runtime/doc/todo.txt

or, once you've pulled the Mercurial repository containing Vim's
source code, in runtime/doc/todo.txt.

In addition, there's also an issues list at Vim's Google Code project:

https://code.google.com/p/vim/issues/list

Don't be afraid to post your patches and questions here, and again
thanks for your help!

- -- regards, ingo
- -- 
  -- Ingo Karkat --  /^-- /^-- /^-- /^-- /^-- http://ingo-karkat.de/ --
  --   http://vim.sourceforge.net/account/profile.php?user_id=9713   --
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.17 (MingW32)

iQEcBAEBAgAGBQJUk+oWAAoJEA7ziXlAzQ/vm/AH/jsxYqlvEahTTu/sPDZ1NSCQ
hK/wHkAYEtcucZlQQ6mzubzSZKkJNQ+91FT5gTQwlEQr27wiXumTEzPnutWgFNyq
YH3ajLHAG1kUwgXBAeIbJWMnhCnFGnftVfqZsyathu2uYpsdfHJbBs4rzQAfL+c2
NFQ6n8X6AyhPHHI9cqi5KZ9ftpGzJe6MxrFVURChzEW4yxZWrf+H1JKWOdmXlaSt
4aaglyp8DSkcR/YbEw/+IdyII8KxTPGshyXJwuq1fzzzSLYrTCwynRAogcvo3fot
3vkjTenDTtZ5x/w1MXKxT6lLHhbpZW670awOPSdxlY2BeY74l64cdageJq5y7VE=
=o1Ey
-END PGP SIGNATURE-

-- 
-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.