Mercurial > vim
comparison src/sign.c @ 16930:1689b52cf297 v8.1.1466
patch 8.1.1466: not updating priority on existing sign
commit https://github.com/vim/vim/commit/58a7f87c8653b4cb5b0794b6b88e2ec140d3d2c3
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jun 4 22:48:15 2019 +0200
patch 8.1.1466: not updating priority on existing sign
Problem: Not updating priority on existing sign.
Solution: Set the sign priority. Add a test. (Yegappan Lakshmanan)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 04 Jun 2019 23:00:06 +0200 |
parents | ce04ebdf26b8 |
children | 15bc5a64bd50 |
comparison
equal
deleted
inserted
replaced
16929:485931978c65 | 16930:1689b52cf297 |
---|---|
328 if (lnum == sign->lnum && id == sign->id | 328 if (lnum == sign->lnum && id == sign->id |
329 && sign_in_group(sign, groupname)) | 329 && sign_in_group(sign, groupname)) |
330 { | 330 { |
331 // Update an existing sign | 331 // Update an existing sign |
332 sign->typenr = typenr; | 332 sign->typenr = typenr; |
333 sign->priority = prio; | |
333 return; | 334 return; |
334 } | 335 } |
335 else if (lnum < sign->lnum) | 336 else if (lnum < sign->lnum) |
336 { | 337 { |
337 insert_sign_by_lnum_prio(buf, prev, id, groupname, prio, | 338 insert_sign_by_lnum_prio(buf, prev, id, groupname, prio, |