Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reload from Disk scrolls up when Word wrap is on #12395

Open
TimSirmovics opened this issue Oct 24, 2022 · 0 comments
Open

Reload from Disk scrolls up when Word wrap is on #12395

TimSirmovics opened this issue Oct 24, 2022 · 0 comments

Comments

@TimSirmovics
Copy link

Description of the Issue

When word wrapping is on and some lines are wrapped, reloading from disk when the file is scrolled to the bottom scrolls the file up equal to the amount of wrapped lines.

Steps to Reproduce the Issue

  1. Turn word wrap on.
  2. Open a file and ensure the following:
    a. The file is scrolled to the very end.
    b. There are lines above the current view that are not visible (the whole file doesn't fit in the window).
    c. Some of the lines in view are wrapped.
  3. Reload from disk.

Expected Behavior

The scrolling position of the file does not change.

Actual Behavior

The file scrolls up an amount of lines.
This amount seems to be equal to the amount of extra lines that are present due to wrapping.

Debug Information

Notepad++ v8.4.6 (64-bit)
Build time : Sep 25 2022 - 19:51:39
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 11 (64-bit)
OS Version : 21H2
OS Build : 22000.1098
Current ANSI codepage : 1252
Plugins :
ComparePlugin (2.0.2)
JSMinNPP (1.2205)
NppExport (0.4)
XMLTools (3.1.1.13)

Example

ReloadFromDisk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant