Comments (5)
Hello again,
Actually it would make more sense to activate the currently focused file.
So it should be good to implement this regardless of bcfcea5.
What do you think?
The only change then is replacing
if (panelsOpened && (closingWin == -1))
{
::SendMessage(nppData._scintillaSecondHandle, SCI_GRABFOCUS, 0, (LPARAM)0);
skipAutoReset = true;
SendMessage(nppData._nppHandle, WM_COMMAND, IDM_VIEW_GOTO_ANOTHER_VIEW, 0);
skipAutoReset = false;
}
with
if (panelsOpened && (closingWin == -1))
{
// Yaron - Get and activate the currently focused file.
// It's still good to make sure the bottom view gets the focus so that "currentView == 0" when returning to Onw-View mode
// ("currentView == 0" is the start/normal state; if multiple files are open, most would remain in the top view when comparing).
LRESULT focusedBufferID = SendMessage(nppData._nppHandle, NPPM_GETCURRENTBUFFERID, 0, 0);
::SendMessage(nppData._scintillaSecondHandle, SCI_GRABFOCUS, 0, (LPARAM)0);
skipAutoReset = true;
SendMessage(nppData._nppHandle, WM_COMMAND, IDM_VIEW_GOTO_ANOTHER_VIEW, 0);
activateBufferID(focusedBufferID, 0);
skipAutoReset = false;
}
I've just seen your last commits in the dev branch.
Wow! I don't understand anything in the major one. :)
Thank you.
Best regards.
from compareplus.
Hello Yaron,
I don't have time to review that at the moment.
I'll address this soon.
Thanks for your suggestions.
BR
from compareplus.
Hello Pavel,
Thank you.
I open an issue when I think of or encounter one.
I know you're currently working on other parts of the code. :)
BR
from compareplus.
This is fixed in the master branch, thanks.
BR
from compareplus.
Great. 👍
Many thanks.
BR
from compareplus.
Related Issues (20)
- Is it possible to save the compare result? HOT 7
- This plug-in should automatically toggle tabs visibility when comparing HOT 3
- navigator not showing HOT 3
- Feature request: Ability to copy unique differences HOT 1
- Algorithm? Standalone? HOT 1
- Vertical scrolling of navbar & compared columns, is very jerky / laggy / jumpy. HOT 2
- Notepad++ now disappears when comparing relatively small simple files HOT 3
- comparePlus 1.1.0 crashes NPP HOT 4
- Manual plugin installation problem feedback HOT 1
- CTRL+ALT+M keyboard shortcut collision HOT 2
- "Ignore Spaces" problem with "_" character? HOT 1
- app crashes on compare HOT 3
- how to save/export result as a html file? HOT 1
- Feature request - Jump to differences within the line HOT 15
- "Next" and "Previous" skip changed lines when they are right after one another HOT 1
- [FR] Quick Switch / Flip HOT 1
- Cannot download ComparePlus plugin ZIP from my work laptop (connected via VPN) HOT 10
- Ability to Copy-Paste only new or changed strings in Show Only Diffs (Hide Matches) mode HOT 2
- Where is dll for latest version? HOT 1
- Navigation bar not showing HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compareplus.