To: vim_dev@googlegroups.com Subject: Patch 9.0.0243 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///