Skip to content

Commit

Permalink
Fix Vim syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
rbong committed Jul 31, 2024
1 parent 59c7317 commit 4fe4813
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions plugin/flog_graph_vim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,11 @@ def g:FlogGetVimBinGraph(git_cmd: string): dict<any>
total_lines += 1

if len > 1
var collapsed = has_key(collapsed_commits, hash)
if collapsed == nil
var collapsed
if !has_key(collapsed_commits, hash)
collapsed = default_collapsed
else
collapsed = collapsed_commits[hash]
endif

# Add collapsed body to output
Expand Down Expand Up @@ -215,9 +217,11 @@ def g:FlogUpdateVimBinGraph(graph: dict<any>): dict<any>
total_lines += 1

if len > 1
var collapsed = has_key(collapsed_commits, hash)
if collapsed == nil
var collapsed
if !has_key(collapsed_commits, hash)
collapsed = default_collapsed
else
collapsed = collapsed_commits[hash]
endif

if collapsed
Expand Down

0 comments on commit 4fe4813

Please sign in to comment.