Skip to content

[BUG] Mosher's Law of Software Engineering #15170

@mkupper

Description

@mkupper

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

If you select the text Mosher's Law of Software Engineering and press F1 then the expected quote is not displayed. It works if you use -qn="Mosher's Law of Software Engineering" from the command line.

The root cause is that Mosher's Law of Software Engineering is 36 characters long and maxSelLen in the IDM_ABOUT handler in NppCommands.cpp is set to 32.

For more details and background please see https://community.notepad-plus-plus.org/topic/25803/an-updated-list-of-notepad-easter-eggs/8

Steps To Reproduce

  1. Select the text Mosher's Law of Software Engineering and press F1

Current Behavior

The About Notepad++ dialog pops up.

Expected Behavior

That the quote will be ghost typed.

Don't worry if it doesn't work right. If everything did, you'd be out of a job.
- Mosher's Law of Software Engineering

Debug Information

This was tested on Notepad++ v8.6.7 (x64) but the issue exists with many, if not all, versions of Notepad+++.

Anything else?

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions