CLE: Was not returning the terminating newline character
This commit is contained in:
parent
1f857102c2
commit
f1fc923199
@ -829,6 +829,9 @@ static int cle_editloop(FAR struct cle_s *priv)
|
|||||||
#if defined(CONFIG_EOL_IS_CR)
|
#if defined(CONFIG_EOL_IS_CR)
|
||||||
case '\r': /* CR terminates line */
|
case '\r': /* CR terminates line */
|
||||||
{
|
{
|
||||||
|
/* Add the newline character to the buffer */
|
||||||
|
|
||||||
|
cle_insertch(priv, '\n');
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -841,6 +844,9 @@ static int cle_editloop(FAR struct cle_s *priv)
|
|||||||
#if defined(CONFIG_EOL_IS_LF) || defined(CONFIG_EOL_IS_BOTH_CRLF)
|
#if defined(CONFIG_EOL_IS_LF) || defined(CONFIG_EOL_IS_BOTH_CRLF)
|
||||||
case '\n': /* LF terminates line */
|
case '\n': /* LF terminates line */
|
||||||
{
|
{
|
||||||
|
/* Add the newline character to the buffer */
|
||||||
|
|
||||||
|
cle_insertch(priv, '\n');
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
@ -850,6 +856,9 @@ static int cle_editloop(FAR struct cle_s *priv)
|
|||||||
case '\r': /* Either CR or LF terminates line */
|
case '\r': /* Either CR or LF terminates line */
|
||||||
case '\n':
|
case '\n':
|
||||||
{
|
{
|
||||||
|
/* Add the newline character to the buffer */
|
||||||
|
|
||||||
|
cle_insertch(priv, '\n');
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user