Skip to content

Commit

Permalink
Complain about missing Python support
Browse files Browse the repository at this point in the history
  • Loading branch information
nixprime committed Apr 20, 2016
1 parent 3ac234f commit 248c706
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions autoload/cpsm.vim
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ let s:script_dir = escape(expand('<sfile>:p:h'), '\')
execute 'pyfile ' . s:script_dir . '/cpsm.py'

function cpsm#CtrlPMatch(items, str, limit, mmode, ispath, crfile, regex)
if !has('python')
return ['ERROR: cpsm requires Vim built with Python support']
endif
if empty(a:str) && g:cpsm_match_empty_query == 0
let s:results = a:items[0:(a:limit)]
let s:regexes = []
Expand Down

0 comments on commit 248c706

Please sign in to comment.