Skip to content

Commit

Permalink
Take current mod into account when resizing window
Browse files Browse the repository at this point in the history
Fixes #239
  • Loading branch information
frm committed Jun 21, 2019
1 parent 86eaa75 commit 29bb046
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ Open a pull request to add REPLs and other features to this plugin. :smiley:

## Changelog

* 21/06/2019
- Fix bug with window resizing for non-default mods (\#239).
* 07/06/2019
- `g:neoterm_keep_term_open` keeps hidden terminals open even if they are
closed without using `:Tclose`
Expand Down
3 changes: 2 additions & 1 deletion autoload/neoterm.vim
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,11 @@ function! s:create_window(instance)
if a:instance.buffer_id > 0
let l:cmd .= printf(' +buffer%s', a:instance.buffer_id)
end

exec l:cmd

if !empty(g:neoterm_size)
exec('resize ' .g:neoterm_size)
exec(l:mod . ' resize ' . g:neoterm_size)
endif

let &hidden=l:hidden
Expand Down

0 comments on commit 29bb046

Please sign in to comment.