summaryrefslogtreecommitdiff
path: root/lib/reline/line_editor.rb
AgeCommit message (Collapse)Author
2021-12-25[ruby/reline] Escape newline(s) in dynamic promptaycabta
https://github.com/ruby/reline/commit/9b209ee1ea
2021-12-25[ruby/reline] Escape newline(s) in promptaycabta
https://github.com/ruby/reline/commit/b545459fca
2021-12-25[ruby/reline] Remove unnecessary parameteraycabta
https://github.com/ruby/reline/commit/20fcd22564
2021-12-24[ruby/reline] Revert "Change aliased methods to be parivete"aycabta
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
2021-12-24[ruby/reline] Change aliased methods to be pariveteaycabta
https://github.com/ruby/reline/commit/0f075f562b
2021-12-24[ruby/reline] Add doc about em-kill-line macroaycabta
https://github.com/ruby/reline/commit/2e46493aff
2021-12-24[ruby/reline] Implement em_kill_lineaycabta
https://github.com/ruby/reline/commit/9fca6ceb45
2021-12-24[ruby/reline] Rename the wrong name "em-kill-line" with the correct name ↵aycabta
"unix-line-discard" https://github.com/ruby/reline/commit/da7af35d1f
2021-12-24[ruby/reline] Add doc about ed-kill-line, kill-line, em-kill-line, and ↵aycabta
unix-line-discard https://github.com/ruby/reline/commit/586a48ffe0
2021-12-24[ruby/reline] Character merging may increase the character widthaycabta
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
2021-12-24[ruby/reline] Add comment for a following char of combined charaycabta
https://github.com/ruby/reline/commit/d465667f57
2021-12-21[ruby/reline] Finalize when exception occurredaycabta
https://github.com/ruby/reline/commit/1f8a3aee43 Co-authored-by: Alex Gittemeier <me@a.lexg.dev>
2021-12-21[ruby/reline] Split off set_signal_handler methodaycabta
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
2021-12-20[ruby/reline] Add support for overwriting dialog proc with the same nameaycabta
https://github.com/ruby/reline/commit/16aa20c380
2021-12-19[ruby/reline] Clear dialog in pastingaycabta
https://github.com/ruby/reline/commit/dabf5313e0
2021-12-13[ruby/reline] Remove unnecessary variables, lower_spaceaycabta
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
2021-11-21[ruby/reline] Correct padding space calculationima1zumi
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
2021-10-12[ruby/reline] Revert "Fix zero division when the screen width is not available"Nobuyoshi Nakada
This reverts commit 0dce9da083541f42c31822a91c72f339934c3986. https://github.com/ruby/reline/commit/f71471cdde
2021-10-12[ruby/reline] Fix zero division when the screen width is not availableNobuyoshi Nakada
https://github.com/ruby/reline/commit/0dce9da083
2021-10-09[ruby/reline] Add RELINE_ALT_SCROLLBAR env to use alternative text for scrollbaraycabta
The setting to use '::' instead of block elements. https://github.com/ruby/reline/commit/4afbc98e2c
2021-10-09[ruby/reline] Fix calculating dialog width with full-width scrollbaraycabta
https://github.com/ruby/reline/commit/93bc9b5277
2021-10-08[ruby/reline] Use alternate text for scrollbar in non-UTF-8 envaycabta
https://github.com/ruby/reline/commit/69e365edcc
2021-10-08[ruby/reline] Better fix for non-UTF-8 default external encodingJeremy Evans
Previous fix didn't show the cursor or dialogs. This allows the dialogs to continue to work. https://github.com/ruby/reline/commit/651c5f63cc
2021-10-08[ruby/reline] Only show dialogs if default external encoding is UTF-8Jeremy Evans
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
2021-10-08[ruby/reline] Cut off the excess on narrow screenaycabta
https://github.com/ruby/reline/commit/972cc993ca
2021-10-08[ruby/reline] Rename DIALOG_HEIGHT with DIALOG_DEFAULT_HEIGHTaycabta
https://github.com/ruby/reline/commit/996bfec64b
2021-10-05[ruby/reline] The width of block elements is 1 on Windowsaycabta
https://github.com/ruby/reline/commit/5f4a75c7a0
2021-10-03[ruby/reline] Re-calc the scroll pos when the content in dialog is shortenedaycabta
https://github.com/ruby/reline/commit/12ea63e6e0
2021-10-03[ruby/reline] Initialize @trap_key to suppress warningaycabta
https://github.com/ruby/reline/commit/b42c0980d9
2021-10-03[ruby/reline] Add a comment to use "private alias_method" idiom after drop ↵aycabta
Ruby 2.5 https://github.com/ruby/reline/commit/1b00cae0fd
2021-10-03[ruby/reline] Add code block notation in docaycabta
https://github.com/ruby/reline/commit/b283791dc5
2021-10-03[ruby/reline] Add doc for ed-unassigned and ed-insert macroaycabta
https://github.com/ruby/reline/commit/7fe9ecf945
2021-10-03[ruby/reline] Rerender whole buffer when argument editing finishedaycabta
If the argument prompt disappears when pasting is finished, rerender the whole buffer. https://github.com/ruby/reline/commit/996bbf8797
2021-10-03[ruby/reline] Simplify SIGWINCH handler to avoid aborting when resizing.TOMITA Masahiro
https://github.com/ruby/reline/commit/481add0537
2021-10-03[ruby/reline] Adjust border of scrollbar rendering calculationaycabta
https://github.com/ruby/reline/commit/737b23beae
2021-10-03[ruby/reline] The @block_elem_width shouldn't be used for height calculationaycabta
https://github.com/ruby/reline/commit/da35902d78
2021-09-29[ruby/reline] Support ed_argument_digit by M+numaycabta
The vi mode can handle "argument number" before an operator or a motion, such as, "3x" (equals "xxx"), and "3l" (equals "lll"). In the emacs mode, GNU Readline can handle argument number with meta key, like "Meta+3 x" (equals "xxx"). https://github.com/ruby/reline/commit/9183cc2e8b
2021-09-28[ruby/reline] Ignore NUL by ed_quoted_insertaycabta
https://github.com/ruby/reline/commit/43b7c01a98
2021-09-27[ruby/reline] ^K is kill-line and ^U is unix-line-discard for inputrcaycabta
https://github.com/ruby/reline/commit/5936071940
2021-09-26[ruby/reline] Implement vi_kill_line_prevJake Zimmerman
This operation is mentioned and bound to `^U` in both `vi_command.rb` and `vi_insert.rb`, but there is no definition of it. Both Vi and Emacs use the same keystroke to do the same behavior, so I've chosen to use `alias_method` to make the implementation small, rather than duplicating the method and re-implementing it. https://github.com/ruby/reline/commit/fdbfc8669f
2021-09-25[ruby/reline] Add aliases {prev,next}_history to ed_{prev,next}_historyaycabta
https://github.com/ruby/reline/commit/d740e18cff
2021-09-24[ruby/reline] Use SGR 0 instead of SGR 39 and 49 to reset font settingsaycabta
https://github.com/ruby/reline/commit/cbacb4c1cf
2021-09-23[ruby/reline] Reset all font settings at left end of dialogaycabta
https://github.com/ruby/reline/commit/5f293b5127
2021-09-10[ruby/reline] Move #pointer from DialogRenderInfo to Dialogaycabta
https://github.com/ruby/reline/commit/92dbac0bff
2021-09-10[ruby/reline] Erase lines correctly when dialog height is changedaycabta
https://github.com/ruby/reline/commit/68d2516551
2021-09-08[ruby/reline] Render scrollbar when the column of the dialog is movedaycabta
https://github.com/ruby/reline/commit/5cea268e56
2021-09-08[ruby/reline] Remove variables that have no meaning in calculationsaycabta
https://github.com/ruby/reline/commit/3b7a1900fd
2021-09-08[ruby/reline] Remove garbage left behind when rerendering the right side of ↵aycabta
the dialog https://github.com/ruby/reline/commit/d89c23e30b
2021-09-08[ruby/reline] Move only one line when render a line and then go to the next lineaycabta
https://github.com/ruby/reline/commit/8a966cd962
2021-09-08[ruby/reline] The #reset_dialog should also use calculated block elem widthaycabta
https://github.com/ruby/reline/commit/577df401b9