Skip to content

Commit

Permalink
Expose if there's a last used pattern
Browse files Browse the repository at this point in the history
Define a function to check if Tabularize has been called yet,
meaning that executing `:Tabularize` will reuse the last pattern.
  • Loading branch information
somini committed May 7, 2016
1 parent 00e1e7f commit 5e64623
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/Tabular.vim
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,10 @@ function! Tabularize(command, ...) range
endtry
endfunction

function! TabularizeHasPattern()
return exists("s:last_tabularize_command")
endfunction

" GTabularize /pattern[/format] {{{2
" GTabularize name
"
Expand Down

0 comments on commit 5e64623

Please sign in to comment.