Patch 8.2.0379
Problem: Gcc warns for ambiguous else.
Solution: Add braces. (Dominique Pelle, closes #5778)
Files: src/textprop.c
*** ../vim-8.2.0378/src/textprop.c 2020-03-13 21:36:32.880494461 +0100
--- src/textprop.c 2020-03-14 07:44:04.550308649 +0100
***************
*** 664,669 ****
--- 664,670 ----
sizeof(textprop_T));
if (lnum == lnum_start)
+ {
if (dir < 0)
{
if (col < prop.tp_col)
***************
*** 671,677 ****
}
else if (prop.tp_col + prop.tp_len - (prop.tp_len != 0) < col)
continue;
!
if (prop.tp_id == id || prop.tp_type == type_id)
{
// Check if the starting position has text props.
--- 672,678 ----
}
else if (prop.tp_col + prop.tp_len - (prop.tp_len != 0) < col)
continue;
! }
if (prop.tp_id == id || prop.tp_type == type_id)
{
// Check if the starting position has text props.
*** ../vim-8.2.0378/src/version.c 2020-03-13 21:36:32.880494461 +0100
--- src/version.c 2020-03-14 07:46:10.677784821 +0100
***************
*** 740,741 ****
--- 740,743 ----
{ /* Add new patch number below this line */
+ /**/
+ 379,
/**/
--
Emacs is a nice OS - but it lacks a good text editor.
That's why I am using Vim. --Anonymous
/// Bram Moolenaar -- [email protected] -- 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202003140647.02E6lXau002669%40masaka.moolenaar.net.