Skip to content

Scrolling view to the end by -n or-p argument doesn't work properly for resize main window #9123

@ArkadiuszMichalski

Description

@ArkadiuszMichalski

Description of the Issue

When we resize NPP main window then scrolling view to the end by -n or -p argument doesn't work properly.

Steps to Reproduce the Issue

  1. Open NPP and resize main window (for example to 1024x703).
  2. Close NPP.
  3. Make test for stylers.model.xml file (it has 1407 lines and 170624 length)
notepad++ -n1407 stylers.model.xml
notepad++ -n1500 stylers.model.xml

notepad++ -p170624 stylers.model.xml
notepad++ -p180000 stylers.model.xml

We get cursor in right place, but view stick on 1401 line (when mian window size is 1024x703).

image

I don't know if it's a bug or intentional but if we want jump to last line/char (or we pass greater value than them) then NPP at least should force scrolling view to the end (as much as possible).

Debug Information

Notepad++ v7.9.1 (32-bit)
Build time : Nov 2 2020 - 01:03:56
Path : D:_test\NPPClean\notepad++.exe
Admin mode : ON
Local Conf mode : ON
OS Name : Windows 7 Ultimate (64-bit)
OS Build : 7601.0
Current ANSI codepage : 1250
Plugins : none

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