Fix traceback when +python3 is not availble
This commit is contained in:
parent
7d83419a4f
commit
13a5a1b947
3 changed files with 11 additions and 1 deletions
|
|
@ -13,6 +13,9 @@
|
||||||
" See the License for the specific language governing permissions and
|
" See the License for the specific language governing permissions and
|
||||||
" limitations under the License.
|
" limitations under the License.
|
||||||
|
|
||||||
|
if !has( 'python3' )
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
" Boilerplate {{{
|
" Boilerplate {{{
|
||||||
let s:save_cpo = &cpoptions
|
let s:save_cpo = &cpoptions
|
||||||
|
|
|
||||||
|
|
@ -271,7 +271,7 @@ JSON value `true`, and the suffix is stripped fom the key, resulting in the
|
||||||
following:
|
following:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
"stopOnEntry#json": true
|
"stopOnEntry": true
|
||||||
```
|
```
|
||||||
|
|
||||||
Which is what we need.
|
Which is what we need.
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,13 @@
|
||||||
" See the License for the specific language governing permissions and
|
" See the License for the specific language governing permissions and
|
||||||
" limitations under the License.
|
" limitations under the License.
|
||||||
|
|
||||||
|
if !has( 'python3' )
|
||||||
|
echohl WarningMsg
|
||||||
|
echom 'Vimspector unavailable: Requires Vim compiled with +python3'
|
||||||
|
echohl None
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
" Boilerplate {{{
|
" Boilerplate {{{
|
||||||
let s:save_cpo = &cpoptions
|
let s:save_cpo = &cpoptions
|
||||||
set cpoptions&vim
|
set cpoptions&vim
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue