Skip to content

#246: fix override when the g:NERDTreeMouseMode = 1 - #261

Merged
ryanoasis merged 1 commit into
ryanoasis:masterfrom
Matrix86:master
Jun 23, 2019
Merged

ryanoasis merged 1 commit into
ryanoasis:masterfrom
Matrix86:master

Conversation

@Matrix86

@Matrix86 Matrix86 commented Mar 8, 2019

Copy link
Copy Markdown
Collaborator

Requirements (please check off with 'x')

What does this Pull Request (PR) do?

This is a fix for the problem mentioned on #246 (comment)
When the user has the g:NERDTreeMouseMode setted to 1, my previous pr override the 2clicks rule, so I added a new function to activate the node only if the g:NERDTreeMouseMode is setted to 3 (single click open any node).

How should this be manually tested?

Set g:NERDTreeMouseMode to 1 or 2 and the directory nodes are opened with double click, instead if you set g:NERDTreeMouseMode to 3 the directory nodes are opened with the single click and the icons work correctly.

Any background context you can provide?

What are the relevant tickets (if any)?

Screenshots (if appropriate or helpful)

@ryanoasis

Copy link
Copy Markdown
Owner

Thanks. To be reviewed

@ryanoasis
ryanoasis merged commit 793fda6 into ryanoasis:master Jun 23, 2019
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