vim_client-ruby 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -46,5 +46,5 @@ Best viewed with [Yard][]
46
46
  Also, see the [wiki][] for examples, tips and sample projects.
47
47
 
48
48
  [clientserver]: http://vimdoc.sourceforge.net/htmldoc/remote.html#clientserver
49
- [Yard]: http://rubydoc.info/gems/vim_client-ruby
49
+ [Yard]: http://rubydoc.info/gems/vim_client-ruby/VimClient
50
50
  [wiki]: http://github.com/burns/vim_client-ruby/wiki
@@ -714,16 +714,20 @@ WaitForPend(
714
714
  * has data (which X11/xcb will read), or at every MSEC_POLL interval.
715
715
  */
716
716
  time(&start);
717
- while ((pending->result == NULL) && !got_sigint)
717
+ while (TRUE)
718
718
  {
719
- while (XEventsQueued(commDisplay, QueuedAfterReading) > 0) {
720
- XNextEvent(commDisplay, &event);
721
- if (event.type == PropertyNotify && e->window == commWindow &&
722
- e->atom == commProperty && e->state == PropertyNewValue)
719
+ while (XCheckWindowEvent(commDisplay, commWindow,
720
+ PropertyChangeMask, &event)) {
721
+ if (e->atom == commProperty && e->state == PropertyNewValue)
723
722
  EventProc(pending);
724
723
  }
725
724
 
726
- if (pending->result == NULL) {
725
+ if (got_sigint)
726
+ break;
727
+
728
+ if (pending->result != NULL)
729
+ break;
730
+ else {
727
731
 
728
732
  time(&now);
729
733
  if ((now - start) >= timeout_sec) {
@@ -1,3 +1,3 @@
1
1
  module VimClient
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vim_client-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-04 00:00:00.000000000 Z
12
+ date: 2012-07-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake