Skip to content
Browse files

Override MOST_POSITIVE_FIXNUM for MacVim

  • Loading branch information...
1 parent 3572b5d commit b1dd3a171d9d028c64463ecceb5f2c709a8d11ef @sjbach committed Sep 2, 2012
Showing with 15 additions and 3 deletions.
  1. +5 −1 plugin/lusty-explorer.vim
  2. +5 −1 plugin/lusty-juggler.vim
  3. +5 −1 src/lusty.rb
View
6 plugin/lusty-explorer.vim
@@ -494,7 +494,11 @@ end
module LustyE
unless const_defined? "MOST_POSITIVE_FIXNUM"
- MOST_POSITIVE_FIXNUM = 2**(0.size * 8 -2) -1
+ # Per <https://github.com/sjbach/lusty/issues/80>, this computation causes
+ # an error in MacVim. Since in usage the value doesn't matter too much
+ # as long as it's high, overriding.
+ #MOST_POSITIVE_FIXNUM = 2**(0.size * 8 -2) -1
+ MOST_POSITIVE_FIXNUM = 2**(16 - 1) - 2
end
def self.simplify_path(s)
View
6 plugin/lusty-juggler.vim
@@ -457,7 +457,11 @@ end
module LustyJ
unless const_defined? "MOST_POSITIVE_FIXNUM"
- MOST_POSITIVE_FIXNUM = 2**(0.size * 8 -2) -1
+ # Per <https://github.com/sjbach/lusty/issues/80>, this computation causes
+ # an error in MacVim. Since in usage the value doesn't matter too much
+ # as long as it's high, overriding.
+ #MOST_POSITIVE_FIXNUM = 2**(0.size * 8 -2) -1
+ MOST_POSITIVE_FIXNUM = 2**(16 - 1) - 2
end
def self.simplify_path(s)
View
6 src/lusty.rb
@@ -11,7 +11,11 @@
module LustyM
unless const_defined? "MOST_POSITIVE_FIXNUM"
- MOST_POSITIVE_FIXNUM = 2**(0.size * 8 -2) -1
+ # Per <https://github.com/sjbach/lusty/issues/80>, this computation causes
+ # an error in MacVim. Since in usage the value doesn't matter too much
+ # as long as it's high, overriding.
+ #MOST_POSITIVE_FIXNUM = 2**(0.size * 8 -2) -1
+ MOST_POSITIVE_FIXNUM = 2**(16 - 1) - 2
end
def self.simplify_path(s)

0 comments on commit b1dd3a1

Please sign in to comment.
Something went wrong with that request. Please try again.