ruby-shell 3.6.1 → 3.6.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/bin/rsh +5 -13
- 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: 0c92bc4c204bd55840ed61d4e975367ff9b7e72ab4d389c806e4e9b1c829fb66
|
|
4
|
+
data.tar.gz: dd487cd42a008d5e6e6d0d7d7cc65c72fb31c24d9fee5793044771b7b435e49c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fa175ed91f9fc777239c1f961a7974c81fb464683327e1abf58a3bedc8f7935563345f64e83353d5541f79c2cb50ebdae8738d79882b4fce5878ab7e5f3a1b4c
|
|
7
|
+
data.tar.gz: b7d62dd7c8b5eab8e699b0d83014fa9dca8ba90007b83cb563f3253128f4413d29629bad7605f8b721e0275fdeda4a68eebff421bc5c0ff2f50b90bbca6bc288
|
data/bin/rsh
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
# Web_site: http://isene.com/
|
|
9
9
|
# Github: https://github.com/isene/rsh
|
|
10
10
|
# License: Public domain
|
|
11
|
-
@version = "3.6.
|
|
11
|
+
@version = "3.6.2" # TAB completion cursor fix: Unified positioning
|
|
12
12
|
|
|
13
13
|
# MODULES, CLASSES AND EXTENSIONS
|
|
14
14
|
class String # Add coloring to strings (with escaping for Readline)
|
|
@@ -689,12 +689,8 @@ def tab(type)
|
|
|
689
689
|
completed = @tabstr + "/"
|
|
690
690
|
@history[0] = @pretab + completed + @postab
|
|
691
691
|
@pos = @pretab.length + completed.length
|
|
692
|
-
#
|
|
693
|
-
|
|
694
|
-
@c_col = @pos0 + @pos + 1
|
|
695
|
-
else
|
|
696
|
-
@c_col = @pos0 + @pos
|
|
697
|
-
end
|
|
692
|
+
# Unified cursor calc (always +1 since @pos0 is now string length)
|
|
693
|
+
@c_col = @pos0 + @pos + 1
|
|
698
694
|
@c.clear_line
|
|
699
695
|
line_display = cmd_check(@history[0]).to_s
|
|
700
696
|
# Use last line only for multi-line prompts
|
|
@@ -929,12 +925,8 @@ def tab(type)
|
|
|
929
925
|
tabline = display_choice.sub(/(.*)#{escaped_tabstr}(.*)/, '\1'.c(choice_color) + @tabstr.u.c(choice_color) + '\2'.c(choice_color))
|
|
930
926
|
print prompt_for_tab + line1 + tabline + line2 # Print the commandline (use last line only for multi-line)
|
|
931
927
|
@pos = @pretab.length.to_i + tabchoice.length.to_i # Set the position on that commandline
|
|
932
|
-
#
|
|
933
|
-
|
|
934
|
-
@c_col = @pos0 + @pos + 1 # Multi-line: string length needs +1
|
|
935
|
-
else
|
|
936
|
-
@c_col = @pos0 + @pos # Single-line: already 1-indexed
|
|
937
|
-
end
|
|
928
|
+
# Unified cursor positioning (always +1 since @pos0 is now string length)
|
|
929
|
+
@c_col = @pos0 + @pos + 1
|
|
938
930
|
@c.col(@c_col) # Set the cursor position
|
|
939
931
|
nextline # Then start showing the completion items
|
|
940
932
|
tabline = @tabarray[i] # Get the next matching tabline
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ruby-shell
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.6.
|
|
4
|
+
version: 3.6.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: 2025-11-
|
|
11
|
+
date: 2025-11-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: 'A shell written in Ruby with extensive tab completions, aliases/nicks,
|
|
14
14
|
history, syntax highlighting, theming, auto-cd, auto-opening files and more. UPDATE
|