vmail 1.8.1 → 1.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -134,7 +134,7 @@ function! s:show_previous_message()
134
134
  call s:focus_list_window()
135
135
  end
136
136
  normal k
137
- if line('.') != 1
137
+ if line('.') != line('$')
138
138
  call s:show_message(1)
139
139
  endif
140
140
  normal zz
@@ -227,11 +227,11 @@ function! s:update()
227
227
  let lines = split(res, '\n')
228
228
  if len(lines) > 0
229
229
  setlocal modifiable
230
- normal gg
231
230
  call append(0, lines)
232
231
  setlocal nomodifiable
233
232
  write!
234
233
  let num = len(lines)
234
+ call cursor(num, 0)
235
235
  redraw
236
236
  echom "You have " . num . " new message" . (num == 1 ? '' : 's') . "!"
237
237
  else
@@ -1,6 +1,6 @@
1
1
  module Vmail
2
2
  DIVIDER_WIDTH = 46
3
- UNITS = [:b, :kb, :mb, :gb].freeze
3
+ UNITS = [:b, :k, :M, :G].freeze
4
4
 
5
5
  module Helpers
6
6
 
@@ -482,7 +482,7 @@ trap("INT") {
482
482
  require 'timeout'
483
483
  puts "Closing imap connection"
484
484
  begin
485
- Timeout::timeout(10) do
485
+ Timeout::timeout(2) do
486
486
  $gmail.close
487
487
  end
488
488
  rescue Timeout::Error
@@ -1,3 +1,3 @@
1
1
  module Vmail
2
- VERSION = '1.8.1'
2
+ VERSION = '1.8.2'
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.8.1
5
+ version: 1.8.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Daniel Choi