0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.1.2215: unreachable code in adjusting text prop columns

Problem:    Unreachable code in adjusting text prop columns.
Solution:   Remove the code. (Christian Brabandt)
This commit is contained in:
Bram Moolenaar 2019-10-25 21:49:38 +02:00
parent 11a58af66f
commit 7aee6876eb
2 changed files with 3 additions and 7 deletions

View File

@ -1067,13 +1067,7 @@ adjust_prop_columns(
if (bytes_added > 0 if (bytes_added > 0
&& (tmp_prop.tp_col >= col + (start_incl ? 2 : 1))) && (tmp_prop.tp_col >= col + (start_incl ? 2 : 1)))
{ {
if (tmp_prop.tp_col < col + (start_incl ? 2 : 1)) tmp_prop.tp_col += bytes_added;
{
tmp_prop.tp_len += (tmp_prop.tp_col - 1 - col) + bytes_added;
tmp_prop.tp_col = col + 1;
}
else
tmp_prop.tp_col += bytes_added;
// Save for undo if requested and not done yet. // Save for undo if requested and not done yet.
if ((flags & APC_SAVE_FOR_UNDO) && !dirty) if ((flags & APC_SAVE_FOR_UNDO) && !dirty)
u_savesub(lnum); u_savesub(lnum);

View File

@ -741,6 +741,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
2215,
/**/ /**/
2214, 2214,
/**/ /**/