Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenn committed Aug 8, 2021
1 parent 2626e72 commit 2e718e8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion BUGS.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ To do so, we need to refactor current key event dispatch.

See `replxx` design (`ACTION_RESULT`, `action_trait_t`).

## Line wrapping (should be fixed with verions >= 6.1.2)
## Line wrapping (should be fixed with versions >= 6.1.2)

On Unix platform, we assume that `auto_right_margin` (`am`) is enabled.
And on Windows, we activate `ENABLE_WRAP_AT_EOL_OUTPUT`.
Expand Down
4 changes: 2 additions & 2 deletions CustomBinding.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ Some keys/commands may ask for more input.
I am not sure this point should be tackle here.

## Multiple / complex actions
For one key/command, we may want to perfom multiple actions.
For one key/command, we may want to perform multiple actions.
We should ask the undo manager to start a "transaction" before first action and commit it after the last action.
Should we do something specific with the kill ring ?
We should refresh / repaint only when all actions are performed (or if ask explictly?) depending on cumulated action impacts.
We should refresh / repaint only when all actions are performed (or if ask explicitly?) depending on cumulated action impacts.
...

## Misc
Expand Down
2 changes: 1 addition & 1 deletion examples/diy_hints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use rustyline_derive::{Completer, Helper, Highlighter, Validator};

#[derive(Completer, Helper, Validator, Highlighter)]
struct DIYHinter {
// It's simple example of rustyline, for more effecient, please use ** radix trie **
// It's simple example of rustyline, for more efficient, please use ** radix trie **
hints: HashSet<CommandHint>,
}

Expand Down
2 changes: 1 addition & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ pub enum BellStyle {
Visible,
}

/// `Audible` by default on unix (overriden by current Terminal settings).
/// `Audible` by default on unix (overridden by current Terminal settings).
/// `None` on windows.
impl Default for BellStyle {
#[cfg(any(windows, target_arch = "wasm32"))]
Expand Down
4 changes: 2 additions & 2 deletions src/tty/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fn get_win_size<T: AsRawFd + ?Sized>(fileno: &T) -> (usize, usize) {
// In linux pseudo-terminals are created with dimensions of
// zero. If host application didn't initialize the correct
// size before start we treat zero size as 80 columns and
// inifinite rows
// infinite rows
let cols = if size.ws_col == 0 {
80
} else {
Expand Down Expand Up @@ -227,7 +227,7 @@ impl PosixRawReader {
// key, but has a wrinkle in that `ESC ESC` without anything
// following should be interpreted as the the escape key.
//
// We hanlde this by polling to see if there's anything coming
// We handle this by polling to see if there's anything coming
// within our timeout, and if so, recursing once, but adding alt to
// what we read.
if !allow_recurse {
Expand Down

0 comments on commit 2e718e8

Please sign in to comment.