Skip to content

Hidden Lines command not working correctly; simple case #12844

@alankilborn

Description

@alankilborn

Description of the Issue

The View menu's Hide Lines feature is not correctly hiding lines, in all cases.

Steps to Reproduce the Issue

  1. Open Notepad++'s license.txt file into a file tab
  2. Click+drag down the line number margin, starting on line 2 and stopping when the caret is in the first column of line 5:
    image
  3. Execute _View_menu's Hide Lines command (or press Alt+h) to obtain the correct hiding of lines 2-5, inclusive:
    image
  4. Click+drag down the line number margin, starting on line 7 and stopping when the caret is in the first column of line 11:
    image
  5. Execute _View_menu's Hide Lines command (or press Alt+h).

Actual Behavior

Line 6 did not remain visible:
image

Expected Behavior

I expected lines 1, 6, and 12+ to remain visible.

Debug Information

Notepad++ v8.4.8 (64-bit)
Build time : Dec 24 2022 - 19:40:27
Path : W:\npp.misc_NoBackup\Releases\npp.8.4.8\npp.8.4.8.portable.x64\notepad++.exe
Command Line : -titleAdd="8.4.8 64-bit" -multiInst
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 21H2
OS Build : 19044.2364
Current ANSI codepage : 1252
Plugins :
mimeTools (2.9)
NppConverter (4.5)
NppEditorConfig (0.4)
NppExport (0.4)
PythonScript (3.0.14)

Metadata

Metadata

Assignees

No one assigned

    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