command-t 1.11.3 → 1.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4f598bfb3714c2b23d88a3c04a2bacb69ca8335
4
- data.tar.gz: 0642514254597763103552c89b056f7c75f047cc
3
+ metadata.gz: 15b705a2624dd62c0c65aeb2b4cf83d6a65ff912
4
+ data.tar.gz: 634e56a4920160bc57030edf343e5dfe3006c7d7
5
5
  SHA512:
6
- metadata.gz: 9d757b1ce9387215a56b6c7a2c9768bb2bc638cf9f04580a73e2f395093be62374f0b34ec1f1358c7c6a96c5f1c6f87b351a436d90618e016491a66cfee5b3eb
7
- data.tar.gz: 5f2a2818e1221a03236ba9f29ad169aeb2cd83895aaa597d1519829968104bef34b5c8af9cdebbe2f704ec095c4bdfe5cad7ab5dd4614db721cca4c10fa4a354
6
+ metadata.gz: cc4e56903ae78486158c715970317bc2789ca3be23b7115cdf86e56c5116f004baa4bd054c410d1bd05f09f14f066845e4b78afe2164658a57c0d369703aa965
7
+ data.tar.gz: a7a848d60520dfa88ae35d03f3950f0119c32a5e2ba0ce55dca55b41be9f93ac825e19090322af697b32644b862c9c084753cbf0245ebd562772ce5e9516e268
data/README.txt CHANGED
@@ -112,6 +112,11 @@ Or, for very old versions of Ruby which don't define `RUBY_PATCHLEVEL`:
112
112
 
113
113
  :ruby puts RUBY_VERSION
114
114
 
115
+ Some Linux distributions package Ruby development tools separately from Ruby
116
+ itself; if you're using such a system you may need to install the "ruby-dev",
117
+ "ruby-devel" or similar package using your system's package manager in order
118
+ to build Command-T.
119
+
115
120
  A suitable Ruby environment for Windows can be installed using the Ruby
116
121
  1.8.7-p299 RubyInstaller available at:
117
122
 
@@ -1216,6 +1221,13 @@ POSSIBILITY OF SUCH DAMAGE.
1216
1221
 
1217
1222
  HISTORY *command-t-history*
1218
1223
 
1224
+ 1.11.4 (4 November 2014)
1225
+
1226
+ - fix infinite loop on Windows when |g:CommandTTraverseSCM| is set to a value
1227
+ other than "pwd" (bug present since 1.11)
1228
+ - handle unwanted split edgecase when |'hidden'| is set, the current buffer is
1229
+ modified, and it is visible in more than one window
1230
+
1219
1231
  1.11.3 (10 October 2014)
1220
1232
 
1221
1233
  - ignore impromperly encoded filenames (patch from Sherzod Gapirov)
@@ -112,6 +112,11 @@ Or, for very old versions of Ruby which don't define `RUBY_PATCHLEVEL`:
112
112
 
113
113
  :ruby puts RUBY_VERSION
114
114
 
115
+ Some Linux distributions package Ruby development tools separately from Ruby
116
+ itself; if you're using such a system you may need to install the "ruby-dev",
117
+ "ruby-devel" or similar package using your system's package manager in order
118
+ to build Command-T.
119
+
115
120
  A suitable Ruby environment for Windows can be installed using the Ruby
116
121
  1.8.7-p299 RubyInstaller available at:
117
122
 
@@ -1216,6 +1221,13 @@ POSSIBILITY OF SUCH DAMAGE.
1216
1221
 
1217
1222
  HISTORY *command-t-history*
1218
1223
 
1224
+ 1.11.4 (4 November 2014)
1225
+
1226
+ - fix infinite loop on Windows when |g:CommandTTraverseSCM| is set to a value
1227
+ other than "pwd" (bug present since 1.11)
1228
+ - handle unwanted split edgecase when |'hidden'| is set, the current buffer is
1229
+ modified, and it is visible in more than one window
1230
+
1219
1231
  1.11.3 (10 October 2014)
1220
1232
 
1221
1233
  - ignore impromperly encoded filenames (patch from Sherzod Gapirov)
@@ -284,10 +284,19 @@ module CommandT
284
284
  str.gsub(/[ \\|%#"]/, '\\\\\0')
285
285
  end
286
286
 
287
+ def current_buffer_visible_in_other_window
288
+ count = (0...::VIM::Window.count).to_a.inject(0) do |acc, i|
289
+ acc += 1 if ::VIM::Window[i].buffer.number == $curbuf.number
290
+ acc
291
+ end
292
+ count > 1
293
+ end
294
+
287
295
  def default_open_command
288
296
  if !VIM::get_bool('&modified') ||
289
297
  VIM::get_bool('&hidden') ||
290
- VIM::get_bool('&autowriteall') && !VIM::get_bool('&readonly')
298
+ VIM::get_bool('&autowriteall') && !VIM::get_bool('&readonly') ||
299
+ current_buffer_visible_in_other_window
291
300
  VIM::get_string('g:CommandTAcceptSelectionCommand') || 'e'
292
301
  else
293
302
  'sp'
@@ -1,7 +1,16 @@
1
1
  # Copyright 2010-2014 Greg Hurrell. All rights reserved.
2
2
  # Licensed under the terms of the BSD 2-clause license.
3
3
 
4
- require 'mkmf'
4
+ begin
5
+ require 'mkmf'
6
+ rescue LoadError
7
+ puts <<-DOC.gsub(/^\s+/, '')
8
+ Unable to require "mkmf"; you may need to install Ruby development tools
9
+ (depending on your system, a "ruby-dev"/"ruby-devel" package or similar).
10
+ [exiting]
11
+ DOC
12
+ exit 1
13
+ end
5
14
 
6
15
  def header(item)
7
16
  unless find_header(item)
@@ -22,8 +22,9 @@ module CommandT
22
22
  map { |dir| File.join(path, dir) }.
23
23
  map { |dir| File.exist?(dir) }.
24
24
  any?
25
- return nil if path == '/'
26
- path = File.expand_path(File.join(path, '..'))
25
+ next_path = File.expand_path(File.join(path, '..'))
26
+ return nil if next_path == path
27
+ path = next_path
27
28
  end
28
29
  path
29
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: command-t
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.3
4
+ version: 1.11.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Hurrell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-11 00:00:00.000000000 Z
11
+ date: 2014-11-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  Command-T provides a fast, intuitive mechanism for opening files with a