-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
NPP jumps from "New 1" to "New 3" if "Find Results" is displayed #8677
Comments
@Yaron10 Haha, you are trying to refocus our attention on 8461. :-) I don't know if user's have a right to complain about this one. But yes, point taken. This has (somewhat) bothered me as a user from day # 1 of my N++ usage. |
To a certain degree. :)
That's correct. I have opened the issue because of the possible relation to #8461.
I've encountered the apparently random numbers many times before. But, again, |
Hello, I checked upon this issue because I wanted to learn contributing to open source (this could be my first contribution! :) ). I found the reason for the bug and fixed it. Just as @Yaron10 mentioned, It relates to addressing the Find Results -window as an "unnamed document" and is then checked from list of buffers that such exists. This results to having +1 unnamed documents. I actually missed the part in "How to contribute" where it says I should be assigned this issue before working on it, but oh well :) As I am new to open source and contributing to NPP, could someone let me know if I can create a PR on the issue? Thanks :) |
@Esco441-91 |
Looking forward to your PR. 👍 |
Now you're making me nervous for the expectation :D I'll make the PR tomorrow when I get back to my work computer. |
We'll treat you and your PR with the utmost respect. :) |
I now created the PR. Let's see how it'll turn up :) |
Here's an update on my findings, if anyone else wants to try. I'm not sure if I have the terminlogy correct, but when I say window, I mean anything user can see that he can type into or interact with. The reason why this occurs is because other windowss, like I was able to create a new way to distinguish I think one way to fix this, while keeping backwards compatibility with plugins, would be to make a better distinction on what is a user document and what is not. But if I am correct, it can't be done without marking user documents as something else, because plugin windows and others cannot be marked as anything else without changing their sources. This means that whenever we want to open an actual user document, that would have to be marked as something else. But concidering it can happen from atleast opening a new session, loading an old session or just opening a new document, I don't think I can find the right functions to do this in. |
Thank you for further investigating it and updating. I think it'll be helpful. |
Same 'problem' occurs with
|
STR:
Open NPP (for simplifying the case: no session,
New 1
is open).Open the Find dialog and press
Find All in Current Document
.-- The
Find Results
window is displayed.Open a new file.
Result:
New 3
is opened instead ofNew 2
.(The same happens if you open Python Script console).
Apparently a minor issue, but #8461 might be related.
Notepad++ v7.8.9 (32-bit)
Build time : Aug 1 2020 - 16:33:01
Path : C:---\notepad++.exe
Admin mode : ON
Local Conf mode : ON
OS Name : Windows 7 Enterprise (32-bit)
OS Build : 7601.23964
Current ANSI codepage : 1255
Plugins : ComparePlus.dll HTMLTag_unicode.dll MenuIcons.dll PythonScript.dll _CustomizeToolbar.dll
The text was updated successfully, but these errors were encountered: