Skip to content

Conversation

@GavinRay97
Copy link

Note that this will not work properly if files are opened before the plugin is initialized as it cannot track them.

@sum01
Copy link
Collaborator

sum01 commented Feb 3, 2020

It's not a bad idea, but this won't work if a file is opened in a way other than using the filemanager.

People might be annoyed at this type of change without it being behind an option (although I personally don't care). It's minor, but someone might open 1 file side-by-side, which this doesn't allow for.

end

-- Store a reference to the last opened file
open_files ={}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this local open_files = {} to avoid conflicts outside of the plugin

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

Successfully merging this pull request may close these issues.

2 participants