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

Fix NERDTree opening with the wrong size. #1008

Merged
merged 3 commits into from
Jun 27, 2019
Merged

Fix NERDTree opening with the wrong size. #1008

merged 3 commits into from
Jun 27, 2019

Conversation

PhilRunninger
Copy link
Member

@PhilRunninger PhilRunninger commented Jun 27, 2019

Description of Changes

Closes #259

There were two commands that seemed to be causing the NERDTree window to
open in exactly half the screen width. They are:

  • silent! execute 'edit ' . t:NERDTreeBufName in _createTreeWin()
  • setlocal nobuflisted in _setCommonBufOptions()

These commands were reseting the width of NERDTree. The solution I chose
was to resize the window after creating the new window, and then to set
winfixwidth before setting the other common buffer options.


New Version Info

  • Derive a new version number. Increment the:
    • MAJOR version when you make incompatible API changes,
    • MINOR version when you add functionality in a backwards-compatible manner, and
    • PATCH version when you make backwards-compatible bug fixes.
  • Update version number in autoload/nerdtree.vim
  • Update the ChangeLog, following this format/example:
    MAJOR.MINOR...
    - **.PATCH**: PR Title (Author) #PR Number
    
    ### 5.1...
    - **.1**: Update Changelog and create PR Template (@PhilRunninger) #1007
    - **.0**: Too many changes for one patch...
    

Phil Runninger (mac) added 3 commits June 26, 2019 15:55
There were two commands that seemed to be causing the NERDTree window to
open in exactly half the screen width. They are:

- silent! execute 'edit ' . t:NERDTreeBufName        in _createTreeWin()
- setlocal nobuflisted                         in _setCommonBufOptions()

These commands were reseting the width of NERDTree. The solution I chose
was to resize the window after creating the new window, and then to set
winfixwidth before setting the other common buffer options.
@PhilRunninger PhilRunninger merged commit 2cbc76b into master Jun 27, 2019
@PhilRunninger PhilRunninger deleted the 259 branch June 27, 2019 05:34
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.

Nerdtree winSize auto
1 participant