forked from kyonshi/grenzland-mud
Couple adjustments to the tab handling, added MXP here and there, and added a toggler '\t' to the improved editor to grant access to tabs.
This commit is contained in:
10
src/modify.c
10
src/modify.c
@@ -81,15 +81,19 @@ void parse_at(char *str)
|
||||
{
|
||||
char *p = str;
|
||||
for (; *p; p++)
|
||||
if (*p == '@')
|
||||
*p = '\t';
|
||||
if (*p == '@') {
|
||||
if (*(p+1) != '@')
|
||||
*p = '\t';
|
||||
else
|
||||
p++;
|
||||
}
|
||||
}
|
||||
|
||||
void parse_tab(char *str)
|
||||
{
|
||||
char *p = str;
|
||||
for (; *p; p++)
|
||||
if (*p == '\t')
|
||||
if (*p == '\t' && *(p+1) != '\t')
|
||||
*p = '@';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user