rtfm-filemanager 8.1.1 → 8.1.2
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/CHANGELOG.md +5 -0
- data/bin/rtfm +17 -20
- 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: 0c52d52559571abc679a266f0f34fec4e5f12179002c7d97ff569861cbb80f23
|
|
4
|
+
data.tar.gz: bb419ae2f42c6cd73846b6f784a7de12c438c2377330a02fbbdd9822c10511bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6d50be2e6952379ead07a060b6ff12aeb692ec6b508301e70556dd2a91059f38bc32516c719f8d51a9e0b59dfc91b2fbb6f75692ba274d383b3fe655a0969102
|
|
7
|
+
data.tar.gz: e3e1d9b78370e37b541038f142269e1df6a957babd60d8c3ef1c9da0985c9537845f0b0f713870e66aead24b6942f64b7ce7e9aa1f9d11c295023a57642ed2e6
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,11 @@ All notable changes to RTFM will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [8.1.2] - 2026-03-13
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **Redraw loop on terminal resize** - SIGWINCH handler now only sets a flag; the actual resize and redraw is handled once per main loop iteration. Fixes infinite redraw cascade on macOS/mlterm when dragging to resize the terminal window (#11)
|
|
12
|
+
|
|
8
13
|
## [8.1.1] - 2026-03-12
|
|
9
14
|
|
|
10
15
|
### Fixed
|
data/bin/rtfm
CHANGED
|
@@ -6774,26 +6774,10 @@ end
|
|
|
6774
6774
|
setborder
|
|
6775
6775
|
|
|
6776
6776
|
## Catch change in terminal resize, redraw {{{2
|
|
6777
|
-
Signal
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
unless @external_program_running
|
|
6782
|
-
begin
|
|
6783
|
-
new_h, new_w = IO.console.winsize
|
|
6784
|
-
# Validate terminal size (minimum 10x20 to be usable)
|
|
6785
|
-
if new_h && new_w && new_h >= 10 && new_w >= 20
|
|
6786
|
-
@h, @w = new_h, new_w
|
|
6787
|
-
@pT.update = @pL.update = @pR.update = @pB.update = true
|
|
6788
|
-
refresh
|
|
6789
|
-
render
|
|
6790
|
-
end
|
|
6791
|
-
rescue => e
|
|
6792
|
-
# Silently ignore resize errors to prevent crashes
|
|
6793
|
-
# User can manually refresh with 'r' key if needed
|
|
6794
|
-
end
|
|
6795
|
-
end
|
|
6796
|
-
end
|
|
6777
|
+
# Signal handler only sets a flag (no I/O, signal-safe).
|
|
6778
|
+
# Rapid-fire SIGWINCH from live-resizing collapses into one redraw per loop.
|
|
6779
|
+
@winch_pending = false
|
|
6780
|
+
Signal.trap('WINCH') { @winch_pending = true }
|
|
6797
6781
|
|
|
6798
6782
|
|
|
6799
6783
|
## One-time flush {{{2
|
|
@@ -6816,6 +6800,19 @@ loop do
|
|
|
6816
6800
|
@pB.update = false
|
|
6817
6801
|
end
|
|
6818
6802
|
|
|
6803
|
+
# Handle pending terminal resize (debounced from SIGWINCH)
|
|
6804
|
+
if @winch_pending && !@external_program_running
|
|
6805
|
+
@winch_pending = false
|
|
6806
|
+
begin
|
|
6807
|
+
new_h, new_w = IO.console.winsize
|
|
6808
|
+
if new_h && new_w && new_h >= 10 && new_w >= 20
|
|
6809
|
+
@h, @w = new_h, new_w
|
|
6810
|
+
@pT.update = @pL.update = @pR.update = @pB.update = true
|
|
6811
|
+
refresh
|
|
6812
|
+
end
|
|
6813
|
+
rescue; end
|
|
6814
|
+
end
|
|
6815
|
+
|
|
6819
6816
|
# redraw, but ignore TTY‐focus errors
|
|
6820
6817
|
begin
|
|
6821
6818
|
render
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rtfm-filemanager
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 8.1.
|
|
4
|
+
version: 8.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Geir Isene
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rcurses
|