Age | Commit message (Collapse) | Author | |
---|---|---|---|
2019-12-27 | Add test_completion_with_indent_and_completer_quote_characters | aycabta | |
This is for 8a705245e55575d4d310a2e956b89a36a5931971. | |||
2019-12-25 | ^D on non-empty line in vi mode behaves like Enter | aycabta | |
2019-12-24 | The delete-char-or-list shows completed list when called at end of line | aycabta | |
It doesn't behave the same as the delete-char. | |||
2019-12-17 | Support change search direction | aycabta | |
2019-12-17 | Support forward-search-history by C-s | aycabta | |
2019-12-13 | Show a menu before a document | aycabta | |
IRB should show a menu first if a completed list has plural items. But just shows document without menu if a completed list with plural items includes a perfect matched item. The behavior is a bug. This commit fixes it. | |||
2019-12-12 | Suppress to crash IRB if completed list has nil | aycabta | |
2019-12-10 | Support completion with case-insensitive fashion | aycabta | |
Reline performs completion in a case-insensitive fashon if Readline.completion_case_fold or completion-ignore-case of .inputrc are set "on". | |||
2019-12-05 | Change encoding of completion list...for more tests | aycabta | |
2019-12-05 | Change encoding of completion list | aycabta | |
2019-12-05 | Support disable-completion | aycabta | |
2019-12-05 | Fix variable catch | aycabta | |
2019-12-03 | Support incremental search by last determined word | aycabta | |
In the incremental search by C-r, search word is saved when it's determined. In the next incremental search by C-r, if a user presses C-r again with the empty search word, the determined previous search word is used to search. | |||
2019-12-02 | Support incremental search again by C-r in incremental search | aycabta | |
2019-12-02 | Search history to back in the middle of histories | aycabta | |
2019-12-02 | Remove obsolete code | aycabta | |
2019-12-01 | The ed_search_prev_history should always search to backward | aycabta | |
2019-11-21 | Add test/reline/test_string_processing.rb | aycabta | |
2019-11-21 | Change argument `Proc` to `#call` defined object. | manga_osyo | |
This is the same as the behavior of Readline. | |||
2019-11-19 | Prefer dedecated assertions | Nobuyoshi Nakada | |
2019-11-15 | Implement em_set_mark and em_exchange_mark | aycabta | |
2019-11-12 | Fixed `assert_equal` first argument to be expected. | manga_osyo | |
2019-11-12 | Reline#readline and Reline#readmultiline to private. | osyo-manga | |
2019-10-07 | Swap expected and actual correctly | aycabta | |
2019-09-25 | Make rb_scan_args handle keywords more similar to Ruby methods (#2460) | Jeremy Evans | |
Cfuncs that use rb_scan_args with the : entry suffer similar keyword argument separation issues that Ruby methods suffer if the cfuncs accept optional or variable arguments. This makes the following changes to : handling. * Treats as **kw, prompting keyword argument separation warnings if called with a positional hash. * Do not look for an option hash if empty keywords are provided. For backwards compatibility, treat an empty keyword splat as a empty mandatory positional hash argument, but emit a a warning, as this behavior will be removed in Ruby 3. The argument number check needs to be moved lower so it can correctly handle an empty positional argument being added. * If the last argument is nil and it is necessary to treat it as an option hash in order to make sure all arguments are processed, continue to treat the last argument as the option hash. Emit a warning in this case, as this behavior will be removed in Ruby 3. * If splitting the keyword hash into two hashes, issue a warning, as we will not be splitting hashes in Ruby 3. * If the keyword argument is required to fill a mandatory positional argument, continue to do so, but emit a warning as this behavior will be going away in Ruby 3. * If keyword arguments are provided and the last argument is not a hash, that indicates something wrong. This can happen if a cfunc is calling rb_scan_args multiple times, and providing arguments that were not passed to it from Ruby. Callers need to switch to the new rb_scan_args_kw function, which allows passing of whether keywords were provided. This commit fixes all warnings caused by the changes above. It switches some function calls to *_kw versions with appropriate kw_splat flags. If delegating arguments, RB_PASS_CALLED_KEYWORDS is used. If creating new arguments, RB_PASS_KEYWORDS is used if the last argument is a hash to be treated as keywords. In open_key_args in io.c, use rb_scan_args_kw. In this case, the arguments provided come from another C function, not Ruby. The last argument may or may not be a hash, so we can't set keyword argument mode. However, if it is a hash, we don't want to warn when treating it as keywords. In Ruby files, make sure to appropriately use keyword splats or literal keywords when calling Cfuncs that now issue keyword argument separation warnings through rb_scan_args. Also, make sure not to pass nil in place of an option hash. Work around Kernel#warn warnings due to problems in the Rubygems override of the method. There is an open pull request to fix these issues in Rubygems, but part of the Rubygems tests for their override fail on ruby-head due to rb_scan_args not recognizing empty keyword splats, which this commit fixes. Implementation wise, adding rb_scan_args_kw is kind of a pain, because rb_scan_args takes a variable number of arguments. In order to not duplicate all the code, the function internals need to be split into two functions taking a va_list, and to avoid passing in a ton of arguments, a single struct argument is used to handle the variables previously local to the function. Notes: Merged-By: jeremyevans <code@jeremyevans.net> | |||
2019-08-27 | Add test with encoding. | manga_osyo | |
2019-08-27 | Change to test file path. | manga_osyo | |
2019-08-27 | Refactoring Reline. | manga_osyo | |
2019-08-27 | Fix reference core method. | manga_osyo | |
2019-08-27 | Remove test_mode in `lib/reline`. | manga_osyo | |
2019-08-18 | Remove commented out debug print | aycabta | |
2019-08-18 | Don't crash when deleting at the end of the line | Alan Wu | |
To reproduce this bug, type one character into irb, then press the delete key on your keyboard. | |||
2019-07-15 | Move a test file of Reline to test/reline/ | aycabta | |
2019-07-15 | Remove unused method. | manga_osyo | |
2019-07-04 | Support Control- and Meta- | aycabta | |
2019-07-04 | Check commented out line in inputrc correctly | aycabta | |
2019-07-04 | Parse key sequence more strictly | Nobuyoshi Nakada | |
2019-07-04 | Skip indented comment lines [Bug #15981] | Nobuyoshi Nakada | |
2019-06-08 | Remove unnecessary variables | aycabta | |
2019-06-06 | Skip transpose-words if less than 2 word | aycabta | |
2019-06-06 | Add test_ed_transpose_words_for_mbchar | aycabta | |
2019-06-04 | Renamed duplicate test | Nobuyoshi Nakada | |
2019-06-04 | Add aliases for commands for changing text macro | aycabta | |
2019-06-04 | Implement transpose-words | aycabta | |
2019-06-03 | Use lines instead of split | Kazuhiro NISHIYAMA | |
``` % cat ~/bench-split.yml prelude: | s = "foo\nbar\nbaz\n" benchmark: '/(?<=\n)/': | s.split(/(?<=\n)/) '/^/': | s.split(/^/) 'lines': | s.lines Warming up -------------------------------------- /(?<=\n)/ 459.123k i/s - 467.844k times in 1.018994s (2.18μs/i) /^/ 467.922k i/s - 469.744k times in 1.003894s (2.14μs/i) lines 2.343M i/s - 2.424M times in 1.034677s (426.84ns/i) Calculating ------------------------------------- /(?<=\n)/ 422.347k i/s - 1.377M times in 3.261232s (2.37μs/i) /^/ 477.603k i/s - 1.404M times in 2.939186s (2.09μs/i) lines 2.485M i/s - 7.028M times in 2.828757s (402.47ns/i) Comparison: lines: 2484631.6 i/s /^/: 477603.3 i/s - 5.20x slower /(?<=\n)/: 422346.5 i/s - 5.88x slower ``` | |||
2019-06-03 | The C-q is also quoted insert in emacs mode | aycabta | |
2019-06-03 | Add aliases for commands for moving macro | aycabta | |
2019-06-03 | Close leaked file descripters in tests | aycabta | |
2019-06-03 | The ed_move_to_beg is different from vi_first_print | aycabta | |
2019-06-03 | Fix ArgumentError in aliased macro | Nobuyoshi Nakada | |
Closes: https://github.com/ruby/ruby/pull/2221 |