mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 9.0.0243: text properties "below" sort differently on MS-Windows
Problem: Text properties "below" sort differently on MS-Windows. Solution: Use the ID as a tie breaker. (closes #10958)
This commit is contained in:
parent
171c683237
commit
e89aeed43e
@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* drawline.c: Functions for drawing window lines on the screen.
|
* drawline.c: Functions for drawing window lines on the screen.
|
||||||
* This is the middle level, drawscreen. is the higher level and screen.c the
|
* This is the middle level, drawscreen.c is the higher level and screen.c the
|
||||||
* lower level.
|
* lower level.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -339,6 +339,11 @@ text_prop_compare(const void *s1, const void *s2)
|
|||||||
// same priority, one that starts first wins
|
// same priority, one that starts first wins
|
||||||
if (col1 != col2)
|
if (col1 != col2)
|
||||||
return col1 < col2 ? 1 : -1;
|
return col1 < col2 ? 1 : -1;
|
||||||
|
|
||||||
|
// for a property with text the id can be used as tie breaker
|
||||||
|
if (tp1->tp_id < 0)
|
||||||
|
return tp1->tp_id > tp2->tp_id ? 1 : -1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -731,6 +731,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 */
|
||||||
|
/**/
|
||||||
|
243,
|
||||||
/**/
|
/**/
|
||||||
242,
|
242,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user