notepad-plus-plus / notepad-plus-plus/notepad-plus-plus
[BUG] Tab activation can yield two buffer-activated notifications
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 29.4k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
Is there an existing issue for this?
- I have searched the existing issues
Description of the Issue
See Community discussion here: https://community.notepad-plus-plus.org/topic/26799/two-buffer-activated-notifications-instead-of-just-one
Steps To Reproduce
- have 2 tabs open in each view
- in the inactive view, click on the inactive tab
Current Behavior
Two of these notifications occur: https://npp-user-manual.org/docs/plugin-communication/#1010nppn_bufferactivated
The first one is for the tab currently active in the initially inactive view, the second one is for the tab being made active in that same view.
Expected Behavior
Only one notification should occur.
Debug Information
Notepad++ v8.8 (64-bit)
Build time : Apr 24 2025 - 02:59:05
Scintilla/Lexilla included : 5.5.6/5.4.4
Boost Regex included : 1_85
Path : C:\NotepadPlusPlus\Misc\_NoBackup\Releases\npp.8.8\npp.8.8.portable.x64\notepad++.exe
Command Line : -multiInst
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
Periodic Backup : ON
Placeholders : OFF
Scintilla Rendering Mode : SC_TECHNOLOGY_DIRECTWRITE (1)
Multi-instance Mode : monoInst
File Status Auto-Detection : cdEnabledNew (for current file/tab only)
Dark Mode : OFF
OS Name : Windows 11 Pro (64-bit)
OS Version : 24H2
OS Build : 26100.3775
Current ANSI codepage : 1252
Plugins :
mimeTools (3.1)
NppConverter (4.6)
NppExport (0.4)
Anything else?
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the two-view, two-tab scenario and trace handling of the NPPN_BUFFERACTIVATED notification described in the issue and linked plugin-communication documentation. Confirm that activating a tab in the inactive view emits only one notification, then verify the behavior with the same reproduction steps.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100