From 51563b70d7689321411b9393bb0c85d3f2cdecdd Mon Sep 17 00:00:00 2001 From: Andrej Zieger Date: Wed, 22 May 2019 23:27:46 +0200 Subject: 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). --- src/nvim/sign.c | 13 ------------- 1 file changed, 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". -- cgit