Patch 9.0.0243
Problem: Text properties "below" sort differently on MS-Windows.
Solution: Use the ID as a tie breaker. (closes #10958)
Files: src/drawline.c
*** ../vim-9.0.0242/src/drawline.c 2022-08-14 19:36:51.503751154 +0100
--- src/drawline.c 2022-08-22 12:51:42.370834374 +0100
***************
*** 9,15 ****
/*
* drawline.c: Functions for drawing window lines on the screen.
! * This is the middle level, drawscreen. is the higher level and screen.c the
* lower level.
*/
--- 9,15 ----
/*
* drawline.c: Functions for drawing window lines on the screen.
! * This is the middle level, drawscreen.c is the higher level and screen.c the
* lower level.
*/
***************
*** 339,344 ****
--- 339,349 ----
// same priority, one that starts first wins
if (col1 != col2)
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;
}
#endif
*** ../vim-9.0.0242/src/version.c 2022-08-21 22:20:16.524857353 +0100
--- src/version.c 2022-08-22 12:50:11.838819031 +0100
***************
*** 733,734 ****
--- 733,736 ----
{ /* Add new patch number below this line */
+ /**/
+ 243,
/**/
--
In Africa some of the native tribes have a custom of beating the ground
with clubs and uttering spine chilling cries. Anthropologists call
this a form of primitive self-expression. In America we call it golf.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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/20220822120054.C1ACB1C0ADA%40moolenaar.net.