Skip to content

[BUG] Monitoring tail in one view affects selections and position in second view #17046

@Steve-31415926535

Description

@Steve-31415926535

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

With 2 views open, if one is monitoring a changing file and the other you have a file being edited, when the monitored file is updated:
a) any selection in the edited file is cleared,
b) if the cursor position has been scrolled off the screen, the viewed position is changed to show the cursor position.

This occurs in version 8.8.5 (64 bit). I just upgraded from 8.5 (I think) to check if it was fixed (it's not). This is not a newly introduced bug. I've only just started using views rather than different notepad++ instances (are views new?)

Steps To Reproduce

  1. Open a file to edit (preferably longer than 1 screenful
  2. Open a file in a second view, and set it to be monitored (View | monitoring)
  3. Ensure the viewed file is being periodically appended to
  4. In the edited file select some lines. When the monitored file updates, the selection is lost (first bug)
  5. In the edited file, place the cursor on the top line of the file being edited and scroll to the bottom of the file. When the monitored file updates, the view of the first file will return to one that shows the cursor position (second bug)

I think both bugs have a common cause.

Current Behavior

While monitoring an output log, selecting lines to indent often results in no, or an incorrect set of lines being indented.

Scrolling through code, either with the scrollbar or pageup/down is interrupted whenever the file being monitored is updated

Expected Behavior

Updates in one view (e.g. monitored file) should not affect another view.

Debug Information

Notepad++ v8.8.5   (64-bit)
Build time: Aug 14 2025 - 00:32:39
Scintilla/Lexilla included: 5.5.7/5.4.5
Boost Regex included: 1_85
Path: C:\Program Files\Notepad++\notepad++.exe
Command Line: "C:\Program Files\Notepad++\change.log" 
Admin mode: OFF
Local Conf mode: OFF
Cloud Config: OFF
Periodic Backup: ON
Placeholders: OFF
Scintilla Rendering Mode: SC_TECHNOLOGY_DIRECTWRITE (1)
Multi-instance Mode: monoInst
asNotepad: OFF
File Status Auto-Detection: cdEnabledNew (for current file/tab only)
Dark Mode: OFF
Display Info:
    primary monitor: 1920x1080, scaling 100%
    visible monitors count: 1
    installed Display Class adapters: 
        0000: Description - NVIDIA GeForce RTX 4050 Laptop GPU
        0000: DriverVersion - 32.0.15.7683
        0001: Description - AMD Radeon(TM) 780M
        0001: DriverVersion - 32.0.11029.5001
OS Name: Windows 11 Home (64-bit)
OS Version: 24H2
OS Build: 26100.4946
Current ANSI codepage: 1252
Plugins: 
    mimeTools (3.1)
    NppConverter (4.6)
    NppExport (0.4)

Anything else?

Selected text

Image

wait a while until monitored file updates...

Image

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