git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/libreadline - Fix backspace
[tpg/acess2.git]
/
Usermode
/
Libraries
/
libreadline.so_src
/
main.c
diff --git
a/Usermode/Libraries/libreadline.so_src/main.c
b/Usermode/Libraries/libreadline.so_src/main.c
index
4566935
..
5937c6b
100644
(file)
--- a/
Usermode/Libraries/libreadline.so_src/main.c
+++ b/
Usermode/Libraries/libreadline.so_src/main.c
@@
-282,7
+282,7
@@
int Readline_int_ParseCharacter(tReadline *Info, char *Input)
case '\b':
if(Info->BufferWritePos <= 0) break; // Protect against underflows
// Write the backsapce
case '\b':
if(Info->BufferWritePos <= 0) break; // Protect against underflows
// Write the backsapce
- _SysWrite(STDOUT_FD,
&ch, 1
);
+ _SysWrite(STDOUT_FD,
"\b \b", 3
);
if(Info->BufferWritePos == Info->BufferUsed) // Simple case: End of string
{
Info->BufferUsed --;
if(Info->BufferWritePos == Info->BufferUsed) // Simple case: End of string
{
Info->BufferUsed --;
UCC
git Repository :: git.ucc.asn.au