Official Ubuntu/Debian Vim 9 package

2022-07-31 Fir de Conversatie Yegappan Lakshmanan
Hi,

Is there an official Ubuntu/Debian Vim 9 package?  I see only
old versions of Vim in the following pages:

https://packages.ubuntu.com/search?keywords=vim
https://packages.debian.org/search?keywords=vim

Note that I know how to build and install the latest version of Vim.

Regards,
Yegappan

-- 
-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAAW7x7%3DjFnNc6gztOyKRg0%2BnYd6voe%3DtCY0VDybk4pjkaAq%2BPg%40mail.gmail.com.


Re: Patch 9.0.0121

2022-07-31 Fir de Conversatie Bram Moolenaar


I wrote:

> Patch 9.0.0121
> Problem:Cannot put virtual text after or below a line.
> Solution:   Add "text_align" and "text_wrap" arguments.
> Files:  runtime/doc textprop.txt, src/textprop.c, src/structs.h,
> src/drawline.c, src/charset.c, src/testdir/test_textprop.vim,
> src/testdir/dumps/Test_prop_with_text_after_1.dump

With this patch (and a few following fixes) it should be possible to add
virtual text inside and after a line.

Note that there are likely various problems, especially with multi-byte
characters, longer texts, etc.  Also, truncating isn't implemented yet.

It should give you a good idea how this can be used and how it behaves.
Let me know if the way this done isn't right.  Bugs will be fixed the
coming weeks (it's complicated, many corner cases to take care of).

-- 
hundred-and-one symptoms of being an internet addict:
213. Your kids start referring to you as "that guy in front of the monitor."

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///  \\\
\\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220731174609.B3D731C0C11%40moolenaar.net.


Patch 9.0.0124

2022-07-31 Fir de Conversatie Bram Moolenaar


Patch 9.0.0124
Problem:Code has more indent than needed.
Solution:   Use continue and return statements. (closes #10824)
Files:  src/arglist.c, src/diff.c, src/edit.c, src/help.c, src/normal.c,
src/syntax.c, src/window.c


*** ../vim-9.0.0123/src/arglist.c   2022-02-03 13:02:32.0 +
--- src/arglist.c   2022-07-31 18:25:09.865852240 +0100
***
*** 1241,1272 
for (idx = 0; idx < ARGCOUNT; ++idx)
{
p = alist_name([idx]);
!   if (p != NULL)
{
!   if (len > 0)
!   {
!   // insert a space in between names
!   if (retval != NULL)
!   retval[len] = ' ';
!   ++len;
!   }
!   for ( ; *p != NUL; ++p)
!   {
!   if (*p == ' '
  #ifndef BACKSLASH_IN_FILENAME
!   || *p == '\\'
  #endif
!   || *p == '`')
!   {
!   // insert a backslash
!   if (retval != NULL)
!   retval[len] = '\\';
!   ++len;
!   }
if (retval != NULL)
!   retval[len] = *p;
++len;
}
}
}
  
--- 1241,1271 
for (idx = 0; idx < ARGCOUNT; ++idx)
{
p = alist_name([idx]);
!   if (p == NULL)
!   continue;
!   if (len > 0)
{
!   // insert a space in between names
!   if (retval != NULL)
!   retval[len] = ' ';
!   ++len;
!   }
!   for ( ; *p != NUL; ++p)
!   {
!   if (*p == ' '
  #ifndef BACKSLASH_IN_FILENAME
!   || *p == '\\'
  #endif
!   || *p == '`')
!   {
!   // insert a backslash
if (retval != NULL)
!   retval[len] = '\\';
++len;
}
+   if (retval != NULL)
+   retval[len] = *p;
+   ++len;
}
}
  
*** ../vim-9.0.0123/src/diff.c  2022-07-28 18:44:24.225873426 +0100
--- src/diff.c  2022-07-31 18:29:41.098241306 +0100
***
*** 678,711 
  
  need_diff_redraw = FALSE;
  FOR_ALL_WINDOWS(wp)
// when closing windows or wiping buffers skip invalid window
!   if (wp->w_p_diff && buf_valid(wp->w_buffer))
!   {
!   redraw_win_later(wp, SOME_VALID);
!   if (wp != curwin)
!   wp_other = wp;
  #ifdef FEAT_FOLDING
!   if (dofold && foldmethodIsDiff(wp))
!   foldUpdateAll(wp);
  #endif
!   // A change may have made filler lines invalid, need to take care
!   // of that for other windows.
!   n = diff_check(wp, wp->w_topline);
!   if ((wp != curwin && wp->w_topfill > 0) || n > 0)
{
!   if (wp->w_topfill > n)
!   wp->w_topfill = (n < 0 ? 0 : n);
!   else if (n > 0 && n > wp->w_topfill)
!   {
!   wp->w_topfill = n;
!   if (wp == curwin)
!   used_max_fill_curwin = TRUE;
!   else if (wp_other != NULL)
!   used_max_fill_other = TRUE;
!   }
!   check_topfill(wp, FALSE);
}
}
  
  if (wp_other != NULL && curwin->w_p_scb)
  {
--- 678,713 
  
  need_diff_redraw = FALSE;
  FOR_ALL_WINDOWS(wp)
+ {
// when closing windows or wiping buffers skip invalid window
!   if (!wp->w_p_diff || !buf_valid(wp->w_buffer))
!   continue;
! 
!   redraw_win_later(wp, SOME_VALID);
!   if (wp != curwin)
!   wp_other = wp;
  #ifdef FEAT_FOLDING
!   if (dofold && foldmethodIsDiff(wp))
!   foldUpdateAll(wp);
  #endif
!   // A change may have made filler lines invalid, need to take care of
!   // that for other windows.
!   n = diff_check(wp, wp->w_topline);
!   if ((wp != curwin && wp->w_topfill > 0) || n > 0)
!   {
!   if (wp->w_topfill > n)
!   wp->w_topfill = (n < 0 ? 0 : n);
!   else if (n > 0 && n > wp->w_topfill)
{
!   wp->w_topfill = n;
!   if (wp == curwin)
!   used_max_fill_curwin = TRUE;
!   else if (wp_other != NULL)
!   used_max_fill_other = TRUE;
}
+   check_topfill(wp, FALSE);
}
+ }
  
  if (wp_other != NULL && curwin->w_p_scb)
  {
*** ../vim-9.0.0123/src/edit.c  2022-07-25 18:13:33.046580756 +0100
--- src/edit.c  2022-07-31 18:29:23.386226946 +0100
***
*** 3749,3799 
  static int
  ins_start_select(int c)
  {
! if (km_startsel)
!   switch (c)
!   {
!   case 

Re: Patch 9.0.0121

2022-07-31 Fir de Conversatie Bram Moolenaar


Tony wrote:

> On Sun, Jul 31, 2022 at 6:36 PM Bram Moolenaar  wrote:
> >
> >
> > Patch 9.0.0121
> > Problem:Cannot put virtual text after or below a line.
> > Solution:   Add "text_align" and "text_wrap" arguments.
> > Files:  runtime/doc textprop.txt, src/textprop.c, src/structs.h,
> > src/drawline.c, src/charset.c, src/testdir/test_textprop.vim,
> > src/testdir/dumps/Test_prop_with_text_after_1.dump
> 
> This patch gives a fatal error in Small and Tiny builds:
> 
> gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -fno-strength-reduce -Wall
> -Wno-deprecated-declarations -D_REENTRANT -U_FORTIFY_SOURCE
> -D_FORTIFY_SOURCE=1-o objects/charset.o charset.c
> charset.c: In function ‘win_linetabsize’:
> charset.c:774:8: error: ‘chartabsize_T’ has no member named 
> ‘cts_with_trailing’
>   774 | cts.cts_with_trailing = len = MAXCOL;
>   |^
> make: *** [Makefile:3156: objects/charset.o] Error 1
> exit status 2
> Sun 31 Jul 18:41:30 CEST 2022

I'll add the missing #ifdef.

-- 
Your mouse has moved.  Windows must be restarted for the change
to take effect.  Reboot now?

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///  \\\
\\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220731170450.744781C0C11%40moolenaar.net.


Patch 9.0.0123

2022-07-31 Fir de Conversatie Bram Moolenaar


Patch 9.0.0123 (after 9.0.0121)
Problem:Cannot build with small features.
Solution:   Add #ifdef.
Files:  src/charset.c


*** ../vim-9.0.0122/src/charset.c   2022-07-31 18:00:07.363544792 +0100
--- src/charset.c   2022-07-31 18:01:39.127366973 +0100
***
*** 771,777 
--- 771,779 
  chartabsize_T cts;
  
  init_chartabsize_arg(, wp, lnum, 0, line, line);
+ #ifdef FEAT_PROP_POPUP
  cts.cts_with_trailing = len == MAXCOL;
+ #endif
  for ( ; *cts.cts_ptr != NUL && (len == MAXCOL || cts.cts_ptr < line + 
len);
  MB_PTR_ADV(cts.cts_ptr))
cts.cts_vcol += win_lbr_chartabsize(, NULL);
*** ../vim-9.0.0122/src/version.c   2022-07-31 18:00:07.363544792 +0100
--- src/version.c   2022-07-31 18:02:10.731305445 +0100
***
*** 737,738 
--- 737,740 
  {   /* Add new patch number below this line */
+ /**/
+ 123,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
210. When you get a divorce, you don't care about who gets the children,
 but discuss endlessly who can use the email address.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///  \\\
\\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220731170450.7813F1C0ED5%40moolenaar.net.


Patch 9.0.0122

2022-07-31 Fir de Conversatie Bram Moolenaar


Patch 9.0.0122 (after 9.0.0121)
Problem:Breakindent test fails.
Solution:   Fix condition.
Files:  src/charset.c


*** ../vim-9.0.0121/src/charset.c   2022-07-31 17:11:47.898558951 +0100
--- src/charset.c   2022-07-31 17:58:08.767772829 +0100
***
*** 771,777 
  chartabsize_T cts;
  
  init_chartabsize_arg(, wp, lnum, 0, line, line);
! cts.cts_with_trailing = len = MAXCOL;
  for ( ; *cts.cts_ptr != NUL && (len == MAXCOL || cts.cts_ptr < line + 
len);
  MB_PTR_ADV(cts.cts_ptr))
cts.cts_vcol += win_lbr_chartabsize(, NULL);
--- 771,777 
  chartabsize_T cts;
  
  init_chartabsize_arg(, wp, lnum, 0, line, line);
! cts.cts_with_trailing = len == MAXCOL;
  for ( ; *cts.cts_ptr != NUL && (len == MAXCOL || cts.cts_ptr < line + 
len);
  MB_PTR_ADV(cts.cts_ptr))
cts.cts_vcol += win_lbr_chartabsize(, NULL);
*** ../vim-9.0.0121/src/version.c   2022-07-31 17:11:47.898558951 +0100
--- src/version.c   2022-07-31 17:59:47.047583999 +0100
***
*** 737,738 
--- 737,740 
  {   /* Add new patch number below this line */
+ /**/
+ 122,
  /**/

-- 
"You mean there really is an answer?"
"Yes! But you're not going to like it!"
"Oh do please tell us!"
"You're really not going to like it!"
"but we MUST know - tell us"
"Alright, the answer is"
"yes..."
"... is ..."
"yes... come on!"
"is 42!"
(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/ ///
 \\\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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220731170035.2897A1C0C11%40moolenaar.net.


Re: Patch 9.0.0121

2022-07-31 Fir de Conversatie Tony Mechelynck
On Sun, Jul 31, 2022 at 6:36 PM Bram Moolenaar  wrote:
>
>
> Patch 9.0.0121
> Problem:Cannot put virtual text after or below a line.
> Solution:   Add "text_align" and "text_wrap" arguments.
> Files:  runtime/doc textprop.txt, src/textprop.c, src/structs.h,
> src/drawline.c, src/charset.c, src/testdir/test_textprop.vim,
> src/testdir/dumps/Test_prop_with_text_after_1.dump

This patch gives a fatal error in Small and Tiny builds:

gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -fno-strength-reduce -Wall
-Wno-deprecated-declarations -D_REENTRANT -U_FORTIFY_SOURCE
-D_FORTIFY_SOURCE=1-o objects/charset.o charset.c
charset.c: In function ‘win_linetabsize’:
charset.c:774:8: error: ‘chartabsize_T’ has no member named ‘cts_with_trailing’
  774 | cts.cts_with_trailing = len = MAXCOL;
  |^
make: *** [Makefile:3156: objects/charset.o] Error 1
exit status 2
Sun 31 Jul 18:41:30 CEST 2022

Best regards,
Tony.

-- 
-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CAJkCKXsd9oaOMmVChaLhmYgH3%3DK7CsbrSA6C%2Bjt_zgw_H%2Bv4Yw%40mail.gmail.com.


Patch 9.0.0121

2022-07-31 Fir de Conversatie Bram Moolenaar


Patch 9.0.0121
Problem:Cannot put virtual text after or below a line.
Solution:   Add "text_align" and "text_wrap" arguments.
Files:  runtime/doc textprop.txt, src/textprop.c, src/structs.h,
src/drawline.c, src/charset.c, src/testdir/test_textprop.vim,
src/testdir/dumps/Test_prop_with_text_after_1.dump


*** ../vim-9.0.0120/runtime/doc/textprop.txt2022-07-25 18:13:33.046580756 
+0100
--- runtime/doc/textprop.txt2022-07-31 15:03:34.516688562 +0100
***
*** 141,147 
then "id" must not be present and will be set
automatically to a negative number; otherwise
zero is used
!  text text to be displayed at {col}
   type name of the text property type
All fields except "type" are optional.
  
--- 141,160 
then "id" must not be present and will be set
automatically to a negative number; otherwise
zero is used
!  text text to be displayed before {col}, or after the
!   line if {col} is zero
!  text_align   when "text" is present and {col} is zero
!   specifies where to display the text:
!  after   after the end of the line
!  right   right aligned in the window
!  below   in the next screen line
!   When omitted "after" is used.
!  text_wrapwhen "text" is present and {col} is zero,
!   specifies what happens if the text doesn't
!   fit:
!  wrap  wrap the text to the next line
!  truncate  truncate the text to make it fit
!   When omitted "truncate" is used.
   type name of the text property type
All fields except "type" are optional.
  
***
*** 162,177 
added to. When not found, the global property types are used.
If not found an error is given.
*virtual-text*
!   When "text" is used this text will be displayed at the start
!   location of the text property.  The text of the buffer line
!   will be shifted to make room.  This is called "virtual text".
The text will be displayed but it is not part of the actual
buffer line, the cursor cannot be placed on it.  A mouse click
in the text will move the cursor to the first character after
!   the text.
A negative "id" will be chosen and is returned.  Once a
property with "text" has been added for a buffer then using a
!   negative "id" for any other property will give an error.
  
Can also be used as a |method|: >
GetLnum()->prop_add(col, props)
--- 175,200 
added to. When not found, the global property types are used.
If not found an error is given.
*virtual-text*
!   When "text" is used and the column is non-zero then this text
!   will be displayed at the start location of the text property
!   after the text.  The text of the buffer line will be shifted
!   to make room.  This is called "virtual text".
!   When the column is zero the virtual text will appear after the
!   buffer text.  The "text_align" and "text_wrap" arguments
!   determine how it is displayed.
The text will be displayed but it is not part of the actual
buffer line, the cursor cannot be placed on it.  A mouse click
in the text will move the cursor to the first character after
!   the text, or the last character of the line.
A negative "id" will be chosen and is returned.  Once a
property with "text" has been added for a buffer then using a
!   negative "id" for any other property will give an error:
!   *E1293*
!   Make sure to use a highlight that makes clear to the user that
!   this is virtual text, otherwise it will be very confusing that
!   the text cannot be edited.
!   To separate the virtual text from the buffer text prepend
!   and/or append spaces to the "text" field.
  
Can also be used as a |method|: >
GetLnum()->prop_add(col, props)
*** ../vim-9.0.0120/src/textprop.c  2022-07-30 

Patch 9.0.0120

2022-07-31 Fir de Conversatie Bram Moolenaar


Patch 9.0.0120
Problem:MS-Windows GUI: cannot use AltGr + Space.
Solution:   Check for VK_MENU instead of VK_LMENU. (Anton Sharonov,
closes #10820, closes #10753)
Files:  src/gui_w32.c


*** ../vim-9.0.0119/src/gui_w32.c   2022-07-26 21:26:14.004747836 +0100
--- src/gui_w32.c   2022-07-31 12:22:10.565060744 +0100
***
*** 2047,2053 
{
// ignore VK_SPACE when ALT key pressed: system menu
if (special_keys[i].key_sym == vk
!   && (vk != VK_SPACE || !(GetKeyState(VK_LMENU) & 0x8000)))
{
/*
 * Behave as expected if we have a dead key and the special key
--- 2047,2053 
{
// ignore VK_SPACE when ALT key pressed: system menu
if (special_keys[i].key_sym == vk
!   && (vk != VK_SPACE || !(GetKeyState(VK_MENU) & 0x8000)))
{
/*
 * Behave as expected if we have a dead key and the special key
***
*** 2055,2061 
 * character output (such as a NUMPAD printable character or
 * the TAB key, etc...).
 */
!   if (dead_key == DEAD_KEY_SET_DEFAULT && 
(special_keys[i].vim_code0 == 'K'
|| vk == VK_TAB || vk == CAR))
{
outputDeadKey_rePost(msg);
--- 2055,2062 
 * character output (such as a NUMPAD printable character or
 * the TAB key, etc...).
 */
!   if (dead_key == DEAD_KEY_SET_DEFAULT
!   && (special_keys[i].vim_code0 == 'K'
|| vk == VK_TAB || vk == CAR))
{
outputDeadKey_rePost(msg);
*** ../vim-9.0.0119/src/version.c   2022-07-31 11:50:37.437635544 +0100
--- src/version.c   2022-07-31 12:23:54.892625509 +0100
***
*** 737,738 
--- 737,740 
  {   /* Add new patch number below this line */
+ /**/
+ 120,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
207. You're given one phone call in prison and you ask them for a laptop.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///  \\\
\\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220731112642.E671E1C0772%40moolenaar.net.


Patch 9.0.0119

2022-07-31 Fir de Conversatie Bram Moolenaar


Patch 9.0.0119
Problem:Tiny chance that creating a backup file fails.
Solution:   Check for EEXIST error. (Ken Takata, closes #10821)
Files:  src/bufwrite.c


*** ../vim-9.0.0118/src/bufwrite.c  2022-05-09 19:06:06.0 +0100
--- src/bufwrite.c  2022-07-31 11:47:43.353783544 +0100
***
*** 1208,1221 
// First find a file name that doesn't exist yet (use some
// arbitrary numbers).
STRCPY(IObuff, fname);
for (i = 4913; ; i += 123)
{
sprintf((char *)gettail(IObuff), "%d", i);
if (mch_lstat((char *)IObuff, ) < 0)
break;
}
-   fd = mch_open((char *)IObuff,
-   O_CREAT|O_WRONLY|O_EXCL|O_NOFOLLOW, perm);
if (fd < 0) // can't write in directory
backup_copy = TRUE;
else
--- 1208,1229 
// First find a file name that doesn't exist yet (use some
// arbitrary numbers).
STRCPY(IObuff, fname);
+   fd = -1;
for (i = 4913; ; i += 123)
{
sprintf((char *)gettail(IObuff), "%d", i);
if (mch_lstat((char *)IObuff, ) < 0)
+   {
+   fd = mch_open((char *)IObuff,
+   O_CREAT|O_WRONLY|O_EXCL|O_NOFOLLOW, perm);
+   if (fd < 0 && errno == EEXIST)
+   // If the same file name is created by another
+   // process between lstat() and open(), find another
+   // name.
+   continue;
break;
+   }
}
if (fd < 0) // can't write in directory
backup_copy = TRUE;
else
*** ../vim-9.0.0118/src/version.c   2022-07-31 11:37:16.451058499 +0100
--- src/version.c   2022-07-31 11:50:05.289659017 +0100
***
*** 737,738 
--- 737,740 
  {   /* Add new patch number below this line */
+ /**/
+ 119,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
203. You're an active member of more than 20 newsgroups.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///  \\\
\\\sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220731105116.CD3851C0C11%40moolenaar.net.


Patch 9.0.0118

2022-07-31 Fir de Conversatie Bram Moolenaar


Patch 9.0.0118 (after 9.0.0115)
Problem:No test for what patch 9.0.0155 fixes.
Solution:   Add a test. Fix typos.  (closes #10822)
Files:  runtime/doc/options.txt, src/globals.h, src/register.c,
src/testdir/test_ins_complete.vim, src/testdir/test_messages.vim


*** ../vim-9.0.0117/runtime/doc/options.txt 2022-07-30 16:54:01.859698303 
+0100
--- runtime/doc/options.txt 2022-07-31 11:31:31.636820191 +0100
***
*** 6453,6459 
'cmdheight' is zero, the ruler is not shown.  Otherwise it is shown in
the last line of the screen.  If the statusline is given by
'statusline' (i.e. not empty), this option takes precedence over
!   'ruler' and 'rulerformat'
If the number of characters displayed is different from the number of
bytes in the text (e.g., for a TAB or a multibyte character), both
the text column (byte number) and the screen column are shown,
--- 6453,6459 
'cmdheight' is zero, the ruler is not shown.  Otherwise it is shown in
the last line of the screen.  If the statusline is given by
'statusline' (i.e. not empty), this option takes precedence over
!   'ruler' and 'rulerformat'.
If the number of characters displayed is different from the number of
bytes in the text (e.g., for a TAB or a multibyte character), both
the text column (byte number) and the screen column are shown,
*** ../vim-9.0.0117/src/globals.h   2022-07-30 19:10:03.569318597 +0100
--- src/globals.h   2022-07-30 23:16:09.075592044 +0100
***
*** 1729,1733 
  // overrules p_magic.  Otherwise set to OPTION_MAGIC_NOT_SET.
  EXTERN optmagic_T magic_overruled INIT(= OPTION_MAGIC_NOT_SET);
  
! // Set when 'cmdheight' is changed from non-zero to one temporarily.
  EXTERN int made_cmdheight_nonzero INIT(= FALSE);
--- 1729,1733 
  // overrules p_magic.  Otherwise set to OPTION_MAGIC_NOT_SET.
  EXTERN optmagic_T magic_overruled INIT(= OPTION_MAGIC_NOT_SET);
  
! // Set when 'cmdheight' is changed from zero to one temporarily.
  EXTERN int made_cmdheight_nonzero INIT(= FALSE);
*** ../vim-9.0.0117/src/register.c  2022-07-30 16:54:01.867698285 +0100
--- src/register.c  2022-07-31 11:31:35.832790771 +0100
***
*** 389,395 
  
if (p_ch < 1)
{
!   // Enable macro indicator temporary
set_option_value((char_u *)"ch", 1L, NULL, 0);
update_screen(VALID);
  
--- 389,395 
  
if (p_ch < 1)
{
!   // Enable macro indicator temporarily
set_option_value((char_u *)"ch", 1L, NULL, 0);
update_screen(VALID);
  
*** ../vim-9.0.0117/src/testdir/test_ins_complete.vim   2022-07-28 
21:51:34.336218153 +0100
--- src/testdir/test_ins_complete.vim   2022-07-31 11:31:35.832790771 +0100
***
*** 397,403 
  \ 'user_data': '',
  \ }
let v:completed_item = value
!   call assert_equal(v:completed_item, value)
  endfunc
  
  func CompleteTest(findstart, query)
--- 397,403 
  \ 'user_data': '',
  \ }
let v:completed_item = value
!   call assert_equal(value, v:completed_item)
  endfunc
  
  func CompleteTest(findstart, query)
*** ../vim-9.0.0117/src/testdir/test_messages.vim   2022-07-30 
16:54:01.867698285 +0100
--- src/testdir/test_messages.vim   2022-07-31 11:31:35.832790771 +0100
***
*** 409,422 
  
" Check change/restore cmdheight when macro
call feedkeys("qa", "xt")
!   call assert_equal(, 1)
call feedkeys("q", "xt")
!   call assert_equal(, 0)
  
call setline(1, 'somestring')
call feedkeys("y", "n")
%s/somestring/otherstring/gc
!   call assert_equal(getline(1), 'otherstring')
  
call feedkeys("g\", "xt")
call assert_match(
--- 409,422 
  
" Check change/restore cmdheight when macro
call feedkeys("qa", "xt")
!   call assert_equal(1, )
call feedkeys("q", "xt")
!   call assert_equal(0, )
  
call setline(1, 'somestring')
call feedkeys("y", "n")
%s/somestring/otherstring/gc
!   call assert_equal('otherstring', getline(1))
  
call feedkeys("g\", "xt")
call assert_match(
***
*** 428,434 
  split
endfor
only
!   call assert_equal(, 0)
  
set cmdheight&
set showcmd&
--- 428,443 
  split
endfor
only
!   call assert_equal(0, )
! 
!   " Check that pressing ":" should not scroll a window
!   " Check for what patch 9.0.0115 fixes
!   botright 10new
!   call setline(1, range(12))
!   7
!   call feedkeys(":\"\=line('w0')\\", "xt")
!   call assert_equal('"1', @:)
!   bwipe!
  
set cmdheight&
set showcmd&
*** ../vim-9.0.0117/src/version.c   2022-07-30 22:17:14.812697205 +0100
--- src/version.c   2022-07-31 11:33:07.444205417 +0100
***
*** 737,738 
--- 737,740 
  {   /* Add new patch number below this line */
+ /**/
+ 118,