Skip to content

Fix: correct logic error that meant dodgy codepoints were always reported#7163

Merged
SlySven merged 1 commit intoMudlet:developmentfrom
SlySven:Fix_correctLogicErrorThatMeantDodgyCodepointsWwereAlwaysReported
Feb 27, 2024
Merged

Fix: correct logic error that meant dodgy codepoints were always reported#7163
SlySven merged 1 commit intoMudlet:developmentfrom
SlySven:Fix_correctLogicErrorThatMeantDodgyCodepointsWwereAlwaysReported

Conversation

@SlySven
Copy link
Copy Markdown
Member

@SlySven SlySven commented Feb 27, 2024

Brief overview of PR changes/additions

Change some boolean ORs to ANDs - making the reporting of problematic code- points much less spammy all around.

Motivation for adding to Mudlet

There is a setting so that when a codepoint is encountered by the TTextEdit class where there is a code-point whose width in terms of narrow or wide character is not determinable (or it does not have one) a debug message is printed to the OS command line - either just at the end of a session or for the first time this happens per codepoint per session. Unfortunately a logic error on my part in #3832 meant that every single time such a code- point was encountered a new message was displayed.

Other info (issues closed, discussion etc)

Thanks to humera1295 (Discord user) for bringing this to my attention.

…rted

#### Brief overview of PR changes/additions
Change some boolean ORs to ANDs - making the reporting of problematic code-
points much less spammy all around.

#### Motivation for adding to Mudlet
There is a setting so that when a codepoint is encountered by the `TTextEdit`
class where there is a code-point whose width in terms of narrow or wide
character is not determinable (or it does not have one) a debug message
is printed to the OS command line - either just at the end of a session
or for the first time this happens per codepoint per session. Unfortunately
a logic error on my part in Mudlet#3832 meant that every single time such a code-
point was encountered a new message was displayed.

#### Other info (issues closed, discussion etc)
Thanks to humera1295 (Discord user) for bringing this to my attention.

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
@SlySven SlySven requested a review from a team as a code owner February 27, 2024 19:22
@SlySven SlySven requested a review from a team February 27, 2024 19:22
@add-deployment-links
Copy link
Copy Markdown

add-deployment-links bot commented Feb 27, 2024

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

No need to install anything - just unzip and run.
Let us know if it works well, and if it doesn't, please give details.

@SlySven SlySven merged commit 23c8a37 into Mudlet:development Feb 27, 2024
@SlySven SlySven deleted the Fix_correctLogicErrorThatMeantDodgyCodepointsWwereAlwaysReported branch March 5, 2024 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants