Skip to content

Bump fork to version 9.1.1#1

Merged
rtfeldman merged 413 commits intoroc-lang:masterfrom
ayazhafiz:bump-9.1.1
Dec 29, 2021
Merged

Bump fork to version 9.1.1#1
rtfeldman merged 413 commits intoroc-lang:masterfrom
ayazhafiz:bump-9.1.1

Conversation

@ayazhafiz
Copy link
Copy Markdown
Member

This bumps the fork to be compatible with version 9.1.1 upstream while preserving the patch from kkawakam#372 that is used in the Roc CLI. The benefit of updating to 9.1.1 (or anything about 9.0) is that it includes kkawakam#518, which fixes roc-lang/roc#2285.

gwenn and others added 30 commits July 6, 2020 19:45
* This commit allows keybinding for forcing accept line (even if
  validator fails). This is useful if you have a separate keybinding
  for accepting, such as `Alt-Enter`. It makes sense to show an error
  to user rather than insert an unexpected newline.
* Forcing `Newline` is also accepted
* `AcceptLine` meaning is changed (not it forces accept),
   but default `Enter` keybinding is not
* `AcceptOrInsertLine` not has a flag that modifies it's behavior in
  the middle of the line (at the end it always submits, when validator
  returned false it's always a newline)
* Fixed bug with exiting readline (both on success and error) when
  cursor is not on the last line
…terrupt

Handle SIGWINCH while calling move_cursor_at_leftmost
* Keep track of new entries in history
If there is no new entry, we don't need to save.
* Fix some links
* Append history
Breaking change: a mutable reference is now needed to save history
* Trace history operations
We don't expect Meta-X in Vi insert mode only ANSI escape sequence.
So Meta-X means Esc (exit insert mode) and do command associated to X.
…ck-to-command-mode

Vi: insert mode escape seq fallback to command mode
Use only ::crate paths.
And there is no need to redefine `hint` default implementation.
Fixed error detection in move_cursor_at_leftmost
A tuple (instead of a struct) is used.
Update windows code
For example, you may have to press the SHIFT key to access numeric keys.
gwenn and others added 26 commits September 4, 2021 09:34
Disable default-features for both syn and quote
bitflags 1.3
nix 0.23
Load terminal settings for VINTR, VQUIT, VSUSP on Unix
We just want to move cursor to the end of actual line: either edited
line or interactive search line
Fix key_map initial capacity
Add reedline to similar projects
This is a reimplementation of kkawakam#338 which was reverted.

When `Highligher::has_continuation_prompt` returns true, rustyline
enables a special mode that passes the original prompt for every line to
the highlighter, and highlighter is free to change color or characters
of the prompt as long as it's length is the same (usual contract for the
highlighter)

Note:
1. Wrapped lines are not prefixed by prompt (this may be fixed in future
   releases either by prepending them, or by collapsing and scrolling
   lines wider than terminal).
2. Unlike kkawakam#338 this PR doesn't change the meaning of `cursor` and `end`
   fields of the `Layout` structure.
@rtfeldman
Copy link
Copy Markdown
Collaborator

Thanks @ayazhafiz!

@rtfeldman
Copy link
Copy Markdown
Collaborator

I made a new v9.1.1 tag for this, so we can make a separate PR to upgrade to it instead of immediately applying it to trunk!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Passing multiline program to repl via stdin fails