rcurses 6.3.0 → 6.3.1
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/rcurses/pane.rb +3 -1
- 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: a56f11dd5e866bf00475278aa8ce3aa2839b214b68cbac65545a72e4a728276b
|
|
4
|
+
data.tar.gz: 67c03d594cd01fe4807c88fcbd7951f22a8d5b09def693c23705a392a41ab3af
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e6a2ae9af2b87338207f6e33814022e751be0a6c78b78cf3105454ca5242b2c716e49a6a6c6a3459229cd0118f1d46200380225e97ade5d9979d674029dc4ea9
|
|
7
|
+
data.tar.gz: c27c8713dee2bc09190fef674b27d61fafcffbc674821b6c278bea768353ef9c5ffefafbfd2db00a396737e940557d42ad0491f39d94972d2e9350309c97db8f
|
data/lib/rcurses/pane.rb
CHANGED
|
@@ -612,6 +612,7 @@ module Rcurses
|
|
|
612
612
|
@multiline_buffer = [] # Clear buffer at start of input
|
|
613
613
|
|
|
614
614
|
while chr != 'ESC'
|
|
615
|
+
row(@y)
|
|
615
616
|
col(@x + prompt_len)
|
|
616
617
|
# Truncate content to fit display width
|
|
617
618
|
disp_w = Rcurses.display_width(cont)
|
|
@@ -638,8 +639,9 @@ module Rcurses
|
|
|
638
639
|
pad_needed = content_len - Rcurses.display_width(display_cont)
|
|
639
640
|
padded = display_cont + (" " * [pad_needed, 0].max)
|
|
640
641
|
print padded.c(fmt)
|
|
641
|
-
# Calculate display width up to cursor position
|
|
642
|
+
# Calculate display width up to cursor position and ensure correct row
|
|
642
643
|
display_pos = @pos > 0 ? Rcurses.display_width(cont[0...@pos]) : 0
|
|
644
|
+
row(@y)
|
|
643
645
|
col(@x + prompt_len + display_pos)
|
|
644
646
|
chr = getchr(flush: false)
|
|
645
647
|
case chr
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rcurses
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.3.
|
|
4
|
+
version: 6.3.1
|
|
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-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: clipboard
|