Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Fix component traffic #247

Merged
merged 1 commit into from
Feb 10, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix component traffic
  • Loading branch information
lambdalisue committed Feb 9, 2020
commit 004546ebdedaee77427c129069c208d0a4e4db2e
4 changes: 2 additions & 2 deletions autoload/gina/component/traffic.vim
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function! gina#component#traffic#ahead() abort
\])
let ahead = store.get(slug, '')
if !empty(ahead)
return ahead
return str2nr(ahead)
endif
if !exists('s:ahead_job')
let pipe = gina#process#pipe#store()
Expand Down Expand Up @@ -50,7 +50,7 @@ function! gina#component#traffic#behind() abort
\])
let behind = store.get(slug, '')
if !empty(behind)
return behind
return str2nr(behind)
endif
if !exists('s:behind_job')
let pipe = gina#process#pipe#store()
Expand Down