Random fixes to comments.

This commit is contained in:
Cheer Xiao
2012-12-16 12:23:24 +08:00
parent 28264423a4
commit 09b1eee5d0
5 changed files with 19 additions and 31 deletions

View File

@@ -13,7 +13,7 @@ last search position is remembered and a new search continues from the
last search position. All search results are saved in the list
'search_prev'. When the user searches forward, i.e. presses Alt-down,
the list is consulted for previous search result, and subsequent
backwards searches are also handled by consultiung the list up until
backwards searches are also handled by consulting the list up until
the end of the list is reached, at which point regular searching will
commence.
@@ -139,7 +139,7 @@ commence.
/**
The maximum number of characters to read from the keyboard without
repainting. Note that this readahead will only occur if new
characters are avaialble for reading, fish will never block for
characters are available for reading, fish will never block for
more input without repainting.
*/
#define READAHEAD_MAX 256
@@ -161,12 +161,12 @@ commence.
*/
#define NO_SEARCH 0
/**
History search mode. This value means that we are perforing a line
History search mode. This value means that we are performing a line
history search.
*/
#define LINE_SEARCH 1
/**
History search mode. This value means that we are perforing a token
History search mode. This value means that we are performing a token
history search.
*/
#define TOKEN_SEARCH 2
@@ -320,7 +320,7 @@ public:
*/
bool repaint_needed;
/** Whether the a screen reset is needed after a repaint. */
/** Whether a screen reset is needed after a repaint. */
bool screen_reset_needed;
/** Constructor */
@@ -577,7 +577,7 @@ void reader_data_t::command_line_changed()
}
/** Remove any duplicate completions in the list. This relies on the list first beeing sorted. */
/** Remove any duplicate completions in the list. This relies on the list first being sorted. */
static void remove_duplicates(std::vector<completion_t> &l)
{
l.erase(std::unique(l.begin(), l.end()), l.end());
@@ -602,7 +602,7 @@ void reader_write_title()
as that of a virtual terminal, we assume it supports setting the
title. If we recognise it as that of a console, we assume it
does not support setting the title. Otherwise we check the
ttyname and see if we belive it is a virtual terminal.
ttyname and see if we believe it is a virtual terminal.
One situation in which this breaks down is with screen, since
screen supports setting the terminal title if the underlying
@@ -797,7 +797,7 @@ static void remove_backward()
if (data->buff_pos <= 0)
return;
/* Fake composed character sequences by continuning to delete until we delete a character of width at least 1. */
/* Fake composed character sequences by continuing to delete until we delete a character of width at least 1. */
int width;
do
{