Skip to content
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

Clean up the handler for the "x" mapping #767

Merged
merged 1 commit into from
Nov 18, 2017

Conversation

lifecrisis
Copy link
Contributor

Previously, pressing "x" on the tree root would result in
unpredictable behavior. The user would either an receive an error
message or the parent of the tree root (which is not visible) would
be closed. This commit repairs this problem.

In addition, some code duplication was removed.

Previously, pressing "x" on the tree root would result in
unpredictable behavior.  The user would either an receive an error
message or the parent of the tree root (which is not visible) would
be closed.  This commit repairs this problem.

In addition, some code duplication was removed.
@lifecrisis lifecrisis merged commit f526c4e into preservim:master Nov 18, 2017
@lifecrisis lifecrisis deleted the x-map branch November 18, 2017 14:51
alexanderscott added a commit to alexanderscott/nerdtree that referenced this pull request Nov 21, 2017
* 'master' of https://github.com/scrooloose/nerdtree: (181 commits)
  Make the "o" mapping consistent with "x"
  Fix a problem with the "x" handler (preservim#768)
  Clean up the handler for the "x" mapping (preservim#767)
  Revert change to tab opening method (preservim#766)
  Add back support for "b:NERDTreeRoot" (preservim#765)
  Update the CHANGELOG
  Have new tabs open as the last tab (with '$')
  Add a note/warning to "TreeDirNode.activate()"
  Document "t" and "T" mappings in the quick help
  Silence messages when opening a file with "T"
  Fix handlers for "t" and "T" on bookmarks
  Explicitly call open() in "ui_glue.vim" callbacks
  Remove an unnecessary assignment
  Clean up the Creator.createTabTree() function
  Clean up the commentary in "creator.vim"
  Extract a common line to the top of a function
  Remove an unnecessary "else" clause
  Clean up the NERDTreeOpener constructor
  Merge pull request preservim#754 from branch comma-separated-file-size
  Merge pull request preservim#756 from mboughaba/master
  ...
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.

1 participant