On Mon Mar 17 15:58:58 2025 +0000, Nikolay Sivov wrote:
Hi, @anders. Thank you for this fix. I think it makes sense, but it needs some tests (see g_editbox_disp_info in existing tests), and some rewording for the subject line. It's still possible to get NULL text there, when text is "same". Also, previously zero-length string will cause early return and LISTVIEW_SetItemT() wasn't called. This also has to be tested.
NULL is same text (edit aborted by the user). From MSDN "If the user cancels editing or doesn't change the text and presses Enter key, the pszText member of the LVITEM structure is NULL"