summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2019-06-06Skip transpose-words if less than 2 wordaycabta
2019-06-05Move I/O access from Reline::KeyStroke to Relineaycabta
2019-06-04Add some documentation to Timeout#timeout about possible issuesJeremy Evans
Documentation requested in [Bug #15886].
2019-06-04Add aliases for commands for changing text macroaycabta
2019-06-04Implement transpose-wordsaycabta
2019-06-04Reflect behavior changes to argument nameTakashi Kokubun
0c459af7c233adb5f44022350bfe8fa132d8053e changed the meaning of `detect_compile_error`, and this commit lets it follow the change.
2019-06-04Simplify matchingNobuyoshi Nakada
2019-06-04colorize_code must return escaped textTakashi Kokubun
This was needed before 0c459af7c233adb5f44022350bfe8fa132d8053e but it could be actually useless now. But I added this anyway just in case.
2019-06-04Colorize error charactersNobuyoshi Nakada
* lib/irb/color.rb (IRB::Color.scan): ignore "incomplete end of input" error only, to colorize invalid characters, e.g., control characters, and invalid symbols, as errors.
2019-06-03Erase VI_OPERATORSaycabta
The operators are using @waiting_operator_proc in vi mode.
2019-06-03The C-q is also quoted insert in emacs modeaycabta
2019-06-03Add aliases for commands for moving macroaycabta
2019-06-03The ed_move_to_beg is different from vi_first_printaycabta
2019-06-03Reline::LineEditor::ARGUMENTABLE is no longer usedNobuyoshi Nakada
2019-06-03Fix ArgumentError in aliased macroNobuyoshi Nakada
Closes: https://github.com/ruby/ruby/pull/2221
2019-06-02Check conditional nestings in INPUTRCNobuyoshi Nakada
Closes: https://github.com/ruby/ruby/pull/2222
2019-06-02Prefer $INPUTRC over the default in the homeNobuyoshi Nakada
Closes: https://github.com/ruby/ruby/pull/2222
2019-06-02Add true condition `Reline`Nobuyoshi Nakada
2019-06-02Add Reline test for unknown macroaycabta
2019-06-02Add new test for Reline within pipeaycabta
2019-06-02Add comments to key bindings vars of Reline::Configaycabta
2019-06-02Reline.readmultiline always needs block to confirm terminationaycabta
2019-06-02Suppress error of macro not foundaycabta
2019-06-02delegate.rb: markup method namesNobuyoshi Nakada
2019-06-01Merge rubygems master from upstream.Hiroshi SHIBATA
I picked the commit from 3c469e0da538428a0ddd94f99aa73c32da22e8ba
2019-06-01Remove an unnecessary argumentaycabta
2019-06-01Just use `File.readlines`Nobuyoshi Nakada
2019-06-01Use inputrc data for keystroke settingaycabta
2019-06-01Seprate raw keystroke config for each platformsNobuyoshi Nakada
2019-06-01Support Home and End key to move to beg and endaycabta
2019-05-31Use IO#sync= instead of a monkey patchaycabta
2019-05-31Flush I/O immediately if RELINE_STDERR_TTY is setaycabta
2019-05-31Bump irb version to 1.1.0.pre.1.Hiroshi SHIBATA
Becausee the current irb support reline and have many of changes.
2019-05-30Fix visibility of some methods when using DelegateClassJeremy Evans
Public instance methods added to a delegated class after the creation of the delegate class were not returned by the public_instance_methods class method of the delegate class. Protected instance methods in the delegated class when the delegate class is created were returned by the public_methods instance method of the delegate class. Patch mostly from Kenichi Kamiya <kachick1@gmail.com> in GitHub pull request 926. Minor changes to get it to apply, and to fix tests after applying by me. Fixes [Bug #11512]
2019-05-30Allow DelegateClass() to module_eval given blockJeremy Evans
Methods that return classes often module_eval the given block (e.g. Class.new and Struct.new). This allows DelegateClass to work similarly. This makes it easier to use DelegateClass directly without subclassing, so as not to create an unnecessary subclass. Implements [Feature #15842]
2019-05-31Fix typo :bug: [ci skip]Takashi Kokubun
2019-05-31Warn compile_error only when input is finishedTakashi Kokubun
Let's say we are in progress to write `"foo"`: ``` irb> "fo ``` at this moment, nothing is wrong. It would be just a normal way to write `"foo"`. Prior to this commit, the `fo` part was warned because of 5b64d7ac6e7cbf759b859428f125539e58bac0bd. But I think warning such a normal input is not valuable for users. However, we'd like to warn `:@1` or `@@1` which is also a syntax error. Then this commit switches the syntax highlight based on whether the input text is finished or not. When it's not finished yet, it does not warn compile_error.
2019-05-31Abstract away Ripper::Lexer#scan in IRB::Color#scanTakashi Kokubun
because 5b64d7ac6e7cbf759b859428f125539e58bac0bd made it hard to understand #colorize_code for me and this change is needed for my next commit.
2019-05-31Finish with ^D only when input is completely empty in vi insert modeaycabta
2019-05-30Use rebuilt buffer data to rerender allaycabta
2019-05-30Use start_with? for escaped quote tooaycabta
2019-05-30Use negative lookahead and start_with?aycabta
2019-05-30Fix strange vertical cursor moving when adding a newline at bottomaycabta
2019-05-30Do not rely on IRB.conf[:MAIN_CONTEXT] before initializeTakashi Kokubun
so that we can colorize binding.irb source lines.
2019-05-30Check the end token of heredoc correctlyaycabta
2019-05-30Calculate vertical position correctly when rerendering all linesaycabta
2019-05-30Fix broken rendering when the last line is auto-wrappedaycabta
2019-05-30Rerender following lines when line number increasedaycabta
2019-05-30Clear remaining lines when line number decreasedaycabta
2019-05-30Fix the auto-wrap behabior that was too buggyaycabta