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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rsh +5 -13
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 84b836c4727e19dc59d0e12f980ebb4437b729a474247d94288d017f39d735b3
4
- data.tar.gz: 72a2ef18a3a12bce6c1081743801d0f996373199268c084ffdb39e5b6f4771e8
3
+ metadata.gz: 0c92bc4c204bd55840ed61d4e975367ff9b7e72ab4d389c806e4e9b1c829fb66
4
+ data.tar.gz: dd487cd42a008d5e6e6d0d7d7cc65c72fb31c24d9fee5793044771b7b435e49c
5
5
  SHA512:
6
- metadata.gz: de67a854302e2855c5fc9fd74a34cf550a98e3e3827cc83862c6b3f8cb329b3da8e0c491bf4266c57f3c066c41d79f0858899f5d9578ce97641a6a2f3c56a15b
7
- data.tar.gz: a3a84a2553228efcbb9e77bbca2c01f7e3b689b1570a02e19a65d2b6c3e85a0bded51519a2bb16b04654687d8e7926272d112e7b4c33029318e9c454e0b8952a
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.1" # Ctrl-L fixes: Position reset, visible length calculation, no duplicate prompts
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
- # Consistent cursor calc
693
- if @is_multiline
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
- # Consistent cursor positioning
933
- if @is_multiline
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.1
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-05 00:00:00.000000000 Z
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