Skip to content

Commit 94eb1f7

Browse files
committed
- feature checks prior to load
1 parent 266d875 commit 94eb1f7

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

autoload/rsvp.vim

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
"
99

1010

11-
" TODO: asciicast
12-
" TODO: crosspost to vim plugins
13-
14-
1511
let s:keepcpo = &cpo
1612
set cpo&vim
1713

doc/vim-rsvp.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
=============================================================================
55
INTRO *rsvp-intro*
66

7-
Why move your eyes to read--like some filthy peasant--when we have
8-
computers that can move the words for us? I know, I know.
7+
Why move your eyes to read--like some filthy peasant--when the
8+
computers can move the words for us? I know, I know.
99

1010
`Waaah,` `waah`! `My` `eyes` `work` `fine`. `I` `like` `dead` `trees`.
1111

@@ -28,8 +28,8 @@ still dragging your eyeballs across some dusty-ass page.
2828
It is time to make Neil DeGrasse Tyson and Bill Nye so proud of you that
2929
they look deeply into each other's eyes--like a proud mama and a proud papa.
3030
So proud, in fact, that they fondly reminisce all the way back to your
31-
conception, and begin lustily pawing at each other in the Hot Topic while
32-
you're trying to pick out a Harry Potter t-shirt and not die from
31+
conception, and begin lustfully pawing at each other in the Hot Topic
32+
while you're trying to pick out a Harry Potter t-shirt and not die from
3333
embarrassment. How do you do that? You trust the science bucko, and
3434
you use this plugin! That's what you do.
3535

plugin/rsvp-plugin.vim

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@
1010
" Reload guard and 'compatible' handling
1111
if exists("loaded_rsvp") | finish | endif
1212

13+
if !has('textprop')
14+
echoerr 'vim-rsvp disabled: +textprop feature not found'
15+
finish
16+
endif
17+
18+
if !has('popupwin')
19+
echoerr 'vim-rsvp disabled: +popupwin feature not found'
20+
finish
21+
endif
22+
1323
let loaded_rsvp = 1
1424

1525
let s:save_cpo = &cpo

0 commit comments

Comments
 (0)