rcurses 3.7.3 → 3.7.4

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rcurses/pane.rb +3 -0
  3. data/lib/rcurses.rb +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d300db2c5840595d0716539687b0c5d6de38d0d60543373f49edf3bd19b953dd
4
- data.tar.gz: 5eed2e21c1912e456640cf54516ffcadece0d7bac70862fd63965299a97c60f1
3
+ metadata.gz: 99de81db114994df5e644c92cb0e569a860af945279861d6177d78daed01daa6
4
+ data.tar.gz: 322659ed626414c180d676b518aeaea38fdf54ae0175e7e9a489bc62e107dd6c
5
5
  SHA512:
6
- metadata.gz: 29eac670b3bd278d0b4f3a76ca892278510a94243318ca7f5aa29b05a95b336ec5b4911763c198b73b1028114525d438d7f9da9f323315ef337a8258ba206ebc
7
- data.tar.gz: 32dd6bcad30a491872f7e6880e811a6326b5df317bff395e6e6d431d976ebeb252521eb093c5dc7959d6d5303e7c056f39e4f335198888a8cf2533a345a27e7f
6
+ metadata.gz: 3b6cebb875b3452447c5e3675a241964882b0c8446ab83fa169990eab04d3730fbef311743595fe4df8b0079385de91e4d117865dfb0bfb6ac2b043a21025661
7
+ data.tar.gz: e2f7d8eb9a5dd661ca17613a13d0098bdf2e9478c8d0a8ad0556ffa7c75cabb7255eab8c4c996480d40599b2ff64ca383ade195793ba721749d5876bf7dbf807
data/lib/rcurses/pane.rb CHANGED
@@ -534,6 +534,9 @@ module Rcurses
534
534
  $stdin.read_nonblock(4096) rescue break
535
535
  end
536
536
  end
537
+ prompt_len = @prompt.pure.length
538
+ new_col = @x + prompt_len + (@pos > 0 ? @pos - 1 : 0)
539
+ col(new_col)
537
540
  Rcurses::Cursor.hide
538
541
  end
539
542
 
data/lib/rcurses.rb CHANGED
@@ -5,7 +5,7 @@
5
5
  # Web_site: http://isene.com/
6
6
  # Github: https://github.com/isene/rcurses
7
7
  # License: Public domain
8
- # Version: 3.7.3: Fixed pasting bug in edit(line)
8
+ # Version: 3.7.4: Fixed editline pos bug
9
9
 
10
10
  require 'io/console' # Basic gem for rcurses
11
11
  require 'io/wait' # stdin handling
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rcurses
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.3
4
+ version: 3.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Geir Isene
@@ -29,8 +29,8 @@ description: 'Create curses applications for the terminal easier than ever. Crea
29
29
  up text (in panes or anywhere in the terminal) in bold, italic, underline, reverse
30
30
  color, blink and in any 256 terminal colors for foreground and background. Use a
31
31
  simple editor to let users edit text in panes. Left, right or center align text
32
- in panes. Cursor movement around the terminal. New in 3.7.3: Fixed pasting bug in
33
- edit(line).'
32
+ in panes. Cursor movement around the terminal. New in 3.7.4: Fixed editline pos
33
+ bug.'
34
34
  email: g@isene.com
35
35
  executables: []
36
36
  extensions: []