Age | Commit message (Collapse) | Author |
|
too much
(https://github.com/ruby/reline/pull/524)
* Do not render dialog where it overflows screen
* Dialog rendering should Scroll down only when needed
* Refactor screen_y_range calculation
Co-authored-by: Stan Lo <[email protected]>
---------
https://github.com/ruby/reline/commit/bc0e3d1310
Co-authored-by: Stan Lo <[email protected]>
|
|
(https://github.com/ruby/reline/pull/492)
* Rewrite dialog rendering
* Fix failing test of dialog with small screen
* Add multiple-dialog rendering test
* Add description comments for each part of render_dialog_changes
|
|
(https://github.com/ruby/reline/pull/535)
This PR was an effort to address #321 (ed_quoted_insert doesn't work
properly) but per the reporter it did not work correctly.
Moreover, it introduced a major regression: Shell job control stopped
working in all applications that use reline, notably IRB.
Bash and other shells send SIGTSTP in response to C-z to implement job
suspension. Handling SIGSTP opts out of this functionality. For a
line oriented terminal program this should be avoided (not to mention,
this behavior diverges from readline's)
https://github.com/ruby/reline/commit/26383d25b8
Co-authored-by: Carl Brasic <[email protected]>
|
|
* Test existing behavior
Typing Ctrl-D ends editing but typing <Del> does not.
Also renamed a test that is not testing ed_delete_next_char but
key_delete.
* Check if line empty first in em_delete
By distributivity of AND over OR, we can factor out this condition. This
will make the next commit simpler.
* Use em_delete in key_delete
When the editing mode is emacs, use `em_delete` in `key_delete`. We need
to add a condition though to `em_delete`, because it implements both
`delete-char` and `end-of-file`. We only want the `end-of-file` behavior
is the key is really Ctrl-D.
This matches the behavior of the <Del> key with readline, i.e. deleting
the next character if there is one, but not moving the cursor, while not
finishing the editing if there are no characters.
|
|
local variable
(https://github.com/ruby/reline/pull/529)
https://github.com/ruby/reline/commit/d0139975fd
Co-authored-by: tomoya ishida <[email protected]>
|
|
(https://github.com/ruby/reline/pull/515)
* Fix cursor position overrun
* Remove unnecessary local variable
Co-authored-by: Stan Lo <[email protected]>
---------
https://github.com/ruby/reline/commit/d4ad9b96c8
Co-authored-by: Stan Lo <[email protected]>
|
|
(https://github.com/ruby/reline/pull/516)
https://github.com/ruby/reline/commit/ae5f9b87ab
|
|
(https://github.com/ruby/reline/pull/513)
https://github.com/ruby/reline/commit/d76c482c5f
|
|
duplicated line.
(https://github.com/ruby/reline/pull/460)
* whole_lines should consider prev_line_index, and must not duplicate last_line
* Add test for lines passed to dynamic prompt proc
* Refactor whole_lines parameters used in test helper
* Remove whole_line's arguments
|
|
(https://github.com/ruby/reline/pull/474)
* Add repeated input-delete test that fails on HEAD
* Use raw mode while readmultiline
|
|
https://github.com/ruby/reline/commit/7d61b3df9a
|
|
https://github.com/ruby/reline/commit/61cc580da4
|
|
when dialog content is very long
https://github.com/ruby/reline/commit/d4c95f89ec
|
|
https://github.com/ruby/reline/commit/e21b69ade4
|
|
sequence) to check_multiline_prompt
(https://github.com/ruby/reline/pull/458)
* pass unmodified lines to check_multiline_prompt
* Add test to check that output modified by output_modifier_proc is not passed to prompt_proc
|
|
https://github.com/ruby/reline/commit/e8e8d81f47
|
|
https://github.com/ruby/reline/commit/d42cdb8f91
|
|
https://github.com/ruby/reline/commit/33bf80e757
|
|
https://github.com/ruby/reline/commit/fb4136c8a7
|
|
https://github.com/ruby/reline/commit/a6d1c917ce
|
|
(https://github.com/ruby/reline/pull/413)
https://github.com/ruby/reline/commit/bd49537964
|
|
https://github.com/ruby/reline/commit/21d75f6d4c
|
|
https://github.com/ruby/reline/commit/0c76631132
|
|
https://github.com/ruby/reline/commit/5db9738f17
|
|
https://github.com/ruby/reline/commit/7d38454327
|
|
last line
https://github.com/ruby/reline/commit/05024b968e
|
|
https://github.com/ruby/reline/commit/9b209ee1ea
|
|
https://github.com/ruby/reline/commit/b545459fca
|
|
https://github.com/ruby/reline/commit/20fcd22564
|
|
Ruby 2.5 doesn't support "private alias_method" idiom but Ruby on Rails
6.x still support 2.5. 😢
This reverts commit https://github.com/ruby/reline/commit/0f075f562b9b.
https://github.com/ruby/reline/commit/4ecaa63b26
|
|
https://github.com/ruby/reline/commit/0f075f562b
|
|
https://github.com/ruby/reline/commit/2e46493aff
|
|
https://github.com/ruby/reline/commit/9fca6ceb45
|
|
"unix-line-discard"
https://github.com/ruby/reline/commit/da7af35d1f
|
|
unix-line-discard
https://github.com/ruby/reline/commit/586a48ffe0
|
|
Even if the number of graphemes doesn't change owing to character
merging, the character width may increase.
https://github.com/ruby/reline/commit/fbcd5f56a7
|
|
https://github.com/ruby/reline/commit/d465667f57
|
|
https://github.com/ruby/reline/commit/1f8a3aee43
Co-authored-by: Alex Gittemeier <[email protected]>
|
|
In some tests, the LineEditor#reset method is always called, but doesn't
need to set the signal handlers there, so cuts it out to a separate
method.
https://github.com/ruby/reline/commit/b143c4f5f9
|
|
https://github.com/ruby/reline/commit/16aa20c380
|
|
https://github.com/ruby/reline/commit/dabf5313e0
|
|
The number of lines below the cursor position was known by
"@rest_height" alone, but the problem was caused by adding
"lower_space". Remove "lower_space" as it is unnecessary.
https://github.com/ruby/reline/commit/a575cef6a3
|
|
fix https://github.com/ruby/irb/issues/308
This bug occurred when `dialog.width - calculate_width(s, true)` was negative.
When `dialog.width` is shorter than `old_dialog.width`, it calculates how much padding it has to do. However, there are cases where `s` is longer than `dialog.width`, as in the issue. In that case, `padding_space_with_escape_sequences` will crash.
Here, `old_dialog.width` is longer than `dialog.width`, so I changed the padding width to `old_dialog.width - dialog.width`.
https://github.com/ruby/reline/commit/c581c31e0f
|
|
This reverts commit 0dce9da083541f42c31822a91c72f339934c3986.
https://github.com/ruby/reline/commit/f71471cdde
|
|
https://github.com/ruby/reline/commit/0dce9da083
|
|
The setting to use '::' instead of block elements.
https://github.com/ruby/reline/commit/4afbc98e2c
|
|
https://github.com/ruby/reline/commit/93bc9b5277
|
|
https://github.com/ruby/reline/commit/69e365edcc
|
|
Previous fix didn't show the cursor or dialogs. This allows the
dialogs to continue to work.
https://github.com/ruby/reline/commit/651c5f63cc
|
|
Fixes a crash in IRB if a dialog is displayed and the default
external encoding is not UTF-8:
/home/jeremy/tmp/reline/lib/reline/line_editor.rb:731:in `write': U+2588 from UTF-8 to US-ASCII (Encoding::UndefinedConversionError)
https://github.com/ruby/reline/commit/f570525ecd
|