Skip to content

Hit text not always brought into user's sight in Search-results window #13129

@alankilborn

Description

@alankilborn

Description of the Issue

When search matches are stepped through in reverse order in Search results window, for longish lines, the hit/matched text on the current line may not be visible by the user (it is just off the left side of the viewing area and user has to use the hscroll bar if they want to see it).

Steps to Reproduce the Issue

  1. Open a copy of file_with_meat.txt from Search dialog option to scroll found text to left #13117 (comment)
  2. Do a Find All in Current Document on the text meat:
    image
  3. Observe Search results window:
    image
  4. Click on the Line 1: line in the Search results window to make it the "current line".
  5. Press F4 (Next Search Result) repeatedly (but slowly) to walk down the search matches, observing the hit text (meat) is shown in-full with every F4 press, i.e., the window is scrolled horizontally as appropriate to show the matched/hit text.
  6. Stop pressing F4 when you reach the last line of the current search.
  7. Now press Shift+F4 (Previous Search Result) repeatedly (but slowly), to walk back up the lines of the search matches.

Expected Behavior

The search hit text to be fully visible in Search results window upon each individual Shift+F4 press.

Actual Behavior

The search hit text was usually not visible upon each individual Shift+F4 press.

Example from the Line 8: line (i.e., when that line is the "current" line in Search results by moving via Shift+F4 to it from the Line 9: line):

image

Note that you can see a "small sliver" of the matched text (to the left of text pull), but for correct behavior more of it should be visible, i.e., the entire word meat.

Debug Information

Notepad++ v8.4.9 (64-bit)
Build time : Jan 27 2023 - 03:11:16
Path : W:\npp.misc_NoBackup\Releases\npp.8.4.9\npp.8.4.9.portable.x64\notepad++.exe
Command Line : -titleAdd="8.4.9 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.2486
Current ANSI codepage : 1252
Plugins :
mimeTools (2.9)
NppConverter (4.5)
NppExport (0.4)
PythonScript (3.0.14)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions