VI and CLE: Fix lots of typos in comments
This commit is contained in:
parent
76a94e541d
commit
55ea1ef68e
@ -212,7 +212,7 @@ static const char g_fmtcursorpos[] = VT100_FMT_CURSORPOS;
|
||||
* Name: cle_write
|
||||
*
|
||||
* Description:
|
||||
* Write a sequence of bytes to the console device (stdout, fd = 1).
|
||||
* Write a sequence of bytes to the console output device.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
@ -224,8 +224,8 @@ static void cle_write(FAR struct cle_s *priv, FAR const char *buffer,
|
||||
|
||||
//clevdbg("buffer=%p buflen=%d\n", buffer, (int)buflen);
|
||||
|
||||
/* Loop until all bytes have been successuflly written (or until a
|
||||
* un-recoverable error is encountered)
|
||||
/* Loop until all bytes have been successfully written (or until a
|
||||
* unrecoverable error is encountered)
|
||||
*/
|
||||
|
||||
do
|
||||
@ -266,7 +266,7 @@ static void cle_write(FAR struct cle_s *priv, FAR const char *buffer,
|
||||
* Name: cle_putch
|
||||
*
|
||||
* Description:
|
||||
* Write a single character to the console device.
|
||||
* Write a single character to the console output device.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
@ -279,7 +279,7 @@ static void cle_putch(FAR struct cle_s *priv, char ch)
|
||||
* Name: cle_getch
|
||||
*
|
||||
* Description:
|
||||
* Get a single character from the console device (stdin, fd = 0).
|
||||
* Get a single character from the console input device.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
@ -531,7 +531,7 @@ static void cle_clrtoeol(FAR struct cle_s *priv)
|
||||
*
|
||||
* Description:
|
||||
* Make space for new text of size 'increment' at the specified cursor
|
||||
* position. This function will not allow text grow beyound (linelen - 1)
|
||||
* position. This function will not allow text grow beyond ('linelen' - 1)
|
||||
* in size.
|
||||
*
|
||||
****************************************************************************/
|
||||
@ -618,8 +618,7 @@ static void cle_closetext(FAR struct cle_s *priv, uint16_t pos, uint16_t size)
|
||||
*
|
||||
* Description:
|
||||
* Update the display based on the last operation. This function is
|
||||
* called at the beginning of the processing loop in Command and Insert
|
||||
* modes (and also in the continuous replace mode).
|
||||
* called at the beginning of the editor loop.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
@ -848,7 +847,7 @@ static int cle_editloop(FAR struct cle_s *priv)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_EOL_IS_EITHER_CRLF
|
||||
case '\r': /* Ether CR or LF terminates line */
|
||||
case '\r': /* Either CR or LF terminates line */
|
||||
case '\n':
|
||||
{
|
||||
return OK;
|
||||
|
@ -467,8 +467,8 @@ static void vi_write(FAR struct vi_s *vi, FAR const char *buffer,
|
||||
|
||||
//vivdbg("buffer=%p buflen=%d\n", buffer, (int)buflen);
|
||||
|
||||
/* Loop until all bytes have been successuflly written (or until a
|
||||
* un-recoverable error is encountered)
|
||||
/* Loop until all bytes have been successfully written (or until a
|
||||
* unrecoverable error is encountered)
|
||||
*/
|
||||
|
||||
do
|
||||
@ -1353,7 +1353,8 @@ static void vi_exitsubmode(FAR struct vi_s *vi, uint8_t mode)
|
||||
*
|
||||
* Description:
|
||||
* Based on the position of the cursor in the text buffer, determine the
|
||||
* horizontal display cursor position, performing TAB expansion as necessary.
|
||||
* horizontal display cursor position, performing TAB expansion as
|
||||
* necessary.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
@ -1913,7 +1914,7 @@ static void vi_delbackward(FAR struct vi_s *vi)
|
||||
* Name: vi_linerange
|
||||
*
|
||||
* Description:
|
||||
* Return the start and end positions for N lines int the text buffer,
|
||||
* Return the start and end positions for N lines in the text buffer,
|
||||
* beginning at the current line. This is logic common to yanking and
|
||||
* deleting lines.
|
||||
*
|
||||
@ -2864,7 +2865,7 @@ static void vi_cmd_submode(FAR struct vi_s *vi)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_EOL_IS_EITHER_CRLF
|
||||
case '\r': /* Ether CR or LF terminates line */
|
||||
case '\r': /* Either CR or LF terminates line */
|
||||
case '\n':
|
||||
{
|
||||
vi_parsecolon(vi);
|
||||
@ -3059,7 +3060,7 @@ static void vi_find_submode(FAR struct vi_s *vi)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_EOL_IS_EITHER_CRLF
|
||||
case '\r': /* Ether CR or LF terminates line */
|
||||
case '\r': /* Either CR or LF terminates line */
|
||||
case '\n':
|
||||
{
|
||||
vi_parsefind(vi);
|
||||
@ -3201,7 +3202,7 @@ static void vi_replacech_submode(FAR struct vi_s *vi)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_EOL_IS_EITHER_CRLF
|
||||
case '\r': /* Ether CR or LF terminates line */
|
||||
case '\r': /* Either CR or LF terminates line */
|
||||
case '\n':
|
||||
{
|
||||
ch = '\n';
|
||||
@ -3355,7 +3356,7 @@ static void vi_insert_mode(FAR struct vi_s *vi)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_EOL_IS_EITHER_CRLF
|
||||
case '\r': /* Ether CR or LF terminates line */
|
||||
case '\r': /* Either CR or LF terminates line */
|
||||
case '\n':
|
||||
{
|
||||
vi_insertch(vi, '\n');
|
||||
@ -3465,7 +3466,7 @@ static void vi_replace_mode(FAR struct vi_s *vi)
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_EOL_IS_EITHER_CRLF
|
||||
case '\r': /* Ether CR or LF terminates line */
|
||||
case '\r': /* Either CR or LF terminates line */
|
||||
case '\n':
|
||||
{
|
||||
vi_replacech(vi, '\n');
|
||||
|
Loading…
x
Reference in New Issue
Block a user