aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrej Zieger <jerdna-regeiz@users.noreply.github.com>2019-05-22 23:27:46 +0200
committerAndrej Zieger <jerdna-regeiz@users.noreply.github.com>2019-05-26 19:32:32 +0200
commit51563b70d7689321411b9393bb0c85d3f2cdecdd (patch)
treeba1f76bddfcd7acc2883833a386c367ef1add51f
parent7d43943e4ecf5bd82ffc041b1039e0b2db4d6d60 (diff)
downloadrneovim-51563b70d7689321411b9393bb0c85d3f2cdecdd.tar.gz
rneovim-51563b70d7689321411b9393bb0c85d3f2cdecdd.tar.bz2
rneovim-51563b70d7689321411b9393bb0c85d3f2cdecdd.zip
Allow multiple signs of same type in one line (matching vim behaviour)
This partly rolls back 36762a00a8010c5e14ad4347ab8287d1e8e7e064, but it matches vim behaviour (covered with recent tests - oldtest).
-rw-r--r--src/nvim/sign.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/nvim/sign.c b/src/nvim/sign.c
index dc4c322a19..01f6c275af 100644
--- a/src/nvim/sign.c
+++ b/src/nvim/sign.c
@@ -339,19 +339,6 @@ void buf_addsign(
}
insert_sign_by_lnum_prio(buf, prev, id, groupname, prio, lnum, typenr);
-
- // Having more than one sign with _the same type_ and on the _same line_ is
- // unwanted, let's prevent it.
-
- lastp = &buf->b_signlist;
- for (sign = buf->b_signlist; sign != NULL; sign = sign->next) {
- if (lnum == sign->lnum && sign->typenr == typenr && id != sign->id) {
- *lastp = sign->next;
- xfree(sign);
- } else {
- lastp = &sign->next;
- }
- }
}
// For an existing, placed sign "markId" change the type to "typenr".