vmail 1.7.9 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/vmail.vim +6 -6
  2. data/lib/vmail/version.rb +1 -1
  3. metadata +1 -1
@@ -570,18 +570,18 @@ func! s:open_compose_window(command)
570
570
  redraw
571
571
  echo a:command
572
572
  let res = system(a:command)
573
+
574
+ let previous_winnr = winnr()
573
575
  split compose_message.txt
576
+ exec previous_winnr . "wincmd w"
577
+ close!
578
+
574
579
  setlocal modifiable
575
580
  " TODO maybe later save backups?
576
581
  setlocal buftype=nowrite
577
- "
578
- if winnr('$') > 1
579
- call s:focus_list_window()
580
- close!
581
- endif
582
582
  silent 1,$delete
583
583
  silent put! =res
584
- call feedkeys("\<cr>")
584
+ "call feedkeys("\<cr>")
585
585
  call s:compose_window_mappings()
586
586
  setlocal completefunc=CompleteContact
587
587
  normal 1G
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = '1.7.9'
2
+ VERSION = '1.8.0'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: vmail
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.7.9
5
+ version: 1.8.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel Choi