mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
Fix spelling mistakes
This commit is contained in:
parent
ce53639553
commit
2c462c7d03
9 changed files with 9 additions and 9 deletions
|
@ -406,7 +406,7 @@ impl<T: GridCell + Copy + Clone> Grid<T> {
|
||||||
// starts at the top, we can do a full rotation which just involves
|
// starts at the top, we can do a full rotation which just involves
|
||||||
// changing the start index.
|
// changing the start index.
|
||||||
//
|
//
|
||||||
// To accomodate scroll regions, rows are reordered at the end.
|
// To accommodate scroll regions, rows are reordered at the end.
|
||||||
if region.start == Line(0) {
|
if region.start == Line(0) {
|
||||||
// Rotate the entire line buffer. If there's a scrolling region
|
// Rotate the entire line buffer. If there's a scrolling region
|
||||||
// active, the bottom lines are restored in the next step.
|
// active, the bottom lines are restored in the next step.
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
//! Tests for the Gird
|
//! Tests for the Grid
|
||||||
|
|
||||||
use super::{BidirectionalIterator, Grid};
|
use super::{BidirectionalIterator, Grid};
|
||||||
use crate::grid::GridCell;
|
use crate::grid::GridCell;
|
||||||
|
|
|
@ -378,7 +378,7 @@ impl Action {
|
||||||
// In theory, we should construct the keystrokes needed to produce the data we are
|
// In theory, we should construct the keystrokes needed to produce the data we are
|
||||||
// pasting... since that's neither practical nor sensible (and probably an impossible
|
// pasting... since that's neither practical nor sensible (and probably an impossible
|
||||||
// task to solve in a general way), we'll just replace line breaks (windows and unix
|
// task to solve in a general way), we'll just replace line breaks (windows and unix
|
||||||
// style) with a singe carriage return (\r, which is what the Enter key produces).
|
// style) with a single carriage return (\r, which is what the Enter key produces).
|
||||||
ctx.write_to_pty(contents.replace("\r\n", "\r").replace("\n", "\r").into_bytes());
|
ctx.write_to_pty(contents.replace("\r\n", "\r").replace("\n", "\r").into_bytes());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1840,7 +1840,7 @@ impl ansi::Handler for Term {
|
||||||
/// Reset the indexed color to original value
|
/// Reset the indexed color to original value
|
||||||
#[inline]
|
#[inline]
|
||||||
fn reset_color(&mut self, index: usize) {
|
fn reset_color(&mut self, index: usize) {
|
||||||
trace!("Reseting color[{}]", index);
|
trace!("Resetting color[{}]", index);
|
||||||
self.colors[index] = self.original_colors[index];
|
self.colors[index] = self.original_colors[index];
|
||||||
self.color_modified[index] = false;
|
self.color_modified[index] = false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@ pub use self::windows::*;
|
||||||
|
|
||||||
/// This trait defines the behaviour needed to read and/or write to a stream.
|
/// This trait defines the behaviour needed to read and/or write to a stream.
|
||||||
/// It defines an abstraction over mio's interface in order to allow either one
|
/// It defines an abstraction over mio's interface in order to allow either one
|
||||||
/// read/write object or a seperate read and write object.
|
/// read/write object or a separate read and write object.
|
||||||
pub trait EventedReadWrite {
|
pub trait EventedReadWrite {
|
||||||
type Reader: io::Read;
|
type Reader: io::Read;
|
||||||
type Writer: io::Write;
|
type Writer: io::Write;
|
||||||
|
|
|
@ -276,7 +276,7 @@ impl OnResize for ConptyHandle {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Helper to build a COORD from a SizeInfo, returing None in overflow cases.
|
/// Helper to build a COORD from a SizeInfo, returning None in overflow cases.
|
||||||
fn coord_from_sizeinfo(sizeinfo: &SizeInfo) -> Option<COORD> {
|
fn coord_from_sizeinfo(sizeinfo: &SizeInfo) -> Option<COORD> {
|
||||||
let cols = sizeinfo.cols().0;
|
let cols = sizeinfo.cols().0;
|
||||||
let lines = sizeinfo.lines().0;
|
let lines = sizeinfo.lines().0;
|
||||||
|
|
|
@ -100,7 +100,7 @@ pub fn new<'a>(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: The ConPTY API curently must use synchronous pipes as the input
|
// TODO: The ConPTY API currently must use synchronous pipes as the input
|
||||||
// and output handles. This has led to the need to support two different
|
// and output handles. This has led to the need to support two different
|
||||||
// types of pipe.
|
// types of pipe.
|
||||||
//
|
//
|
||||||
|
|
|
@ -16,7 +16,7 @@ Running this script depends on an installation of `perf`.
|
||||||
## ANSI Color Tests
|
## ANSI Color Tests
|
||||||
|
|
||||||
We include a few scripts for testing the color of text inside a terminal. The
|
We include a few scripts for testing the color of text inside a terminal. The
|
||||||
first shows various foreground and background varients. The second enumerates
|
first shows various foreground and background variants. The second enumerates
|
||||||
all the colors of a standard terminal. The third enumerates the 24-bit colors.
|
all the colors of a standard terminal. The third enumerates the 24-bit colors.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|
|
@ -207,7 +207,7 @@ impl<'a, 'b> Winpty<'a> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the list of processses running in the winpty agent. Returns <= count processes
|
/// Get the list of processes running in the winpty agent. Returns <= count processes
|
||||||
///
|
///
|
||||||
/// `count` must be greater than 0. Larger values cause a larger allocation.
|
/// `count` must be greater than 0. Larger values cause a larger allocation.
|
||||||
// TODO: This should return Vec<Handle> instead of Vec<i32>
|
// TODO: This should return Vec<Handle> instead of Vec<i32>
|
||||||
|
|
Loading…
Reference in a new issue