Bram,
while looking into #4427 I noticed that there is some dead code, that
cannot be reached. So here is a patch:
diff --git a/src/textprop.c b/src/textprop.c
index cc95546e2..7029daaae 100644
--- a/src/textprop.c
+++ b/src/textprop.c
@@ -1067,13 +1067,7 @@ adjust_prop_columns(
if (bytes_added > 0
&& (tmp_prop.tp_col >= col + (start_incl ? 2 : 1)))
{
- if (tmp_prop.tp_col < col + (start_incl ? 2 : 1))
- {
- 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;
+ tmp_prop.tp_col += bytes_added;
// Save for undo if requested and not done yet.
if ((flags & APC_SAVE_FOR_UNDO) && !dirty)
u_savesub(lnum);
BTW: I think the problem for #4427 is, that one uses the old byte column
numbers for adjust_prop_columns(), while one should use the column
numbers for the newly added text.
Mit freundlichen Grüßen
Christian
--
Da hilft kein Zorn. Da hilft kein Spott.
Da hilft kein Weinen, hilft kein Beten.
Die Nachricht stimmt! Der Liebe Gott
ist aus der Kirche ausgetreten.
-- Erich Kästner
--
--
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/20191025092221.GK26491%40256bit.org.