fancy_buff 3.1.0 → 4.0.0
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 +4 -4
- data/lib/fancy_buff.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a2c28ecbc28c73489bf537ebb9ced7249aca3d1b6b09f22f9fba97980e7752d
|
4
|
+
data.tar.gz: 73db0f4d103f6449b89ef74d84ab2c37f5948f10da2067747ae2146c42dbf482
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48beaba19e87d9adb7d9221a9e0784c15a27e7c3e3629ae313f283eb1e7175f09acd621564e5e9255009d85fdd76532296d0b845d01208487563bb000160edf5
|
7
|
+
data.tar.gz: 9f92dbb97a4b8ff2ead342b1de305d3df60a1bbddfa7b8c82fb22f70f507bf02a092ee61dee8493c928ead773b60bd39c1a0b6068eb59c9508675aedc040d8ed
|
data/lib/fancy_buff.rb
CHANGED
@@ -196,25 +196,25 @@ class FancyBuff
|
|
196
196
|
end
|
197
197
|
|
198
198
|
# scrolls the visible window up
|
199
|
-
def
|
199
|
+
def buff_up!(n=1)
|
200
200
|
@win[1] = [@win[1] - n, 0].max
|
201
201
|
adjust_caret!
|
202
202
|
end
|
203
203
|
|
204
204
|
# scrolls the visible window down
|
205
|
-
def
|
205
|
+
def buff_down!(n=1)
|
206
206
|
@win[1] = [@win[1] + n, @lines.length - 1].min
|
207
207
|
adjust_caret!
|
208
208
|
end
|
209
209
|
|
210
210
|
# scrolls the visible window left
|
211
|
-
def
|
211
|
+
def buff_left!(n=1)
|
212
212
|
@win[0] = [@win[0] - n, 0].max
|
213
213
|
adjust_caret!
|
214
214
|
end
|
215
215
|
|
216
216
|
# scrolls the visible window right
|
217
|
-
def
|
217
|
+
def buff_right!(n=1)
|
218
218
|
@win[0] = [@win[0] + n, max_char_width - 1].min
|
219
219
|
adjust_caret!
|
220
220
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fancy_buff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Lunt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rouge
|