mirror of
https://github.com/tbamud/tbamud.git
synced 2026-01-04 00:18:49 +01:00
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:
parent
bf26d79323
commit
70d7785fea
11 changed files with 49 additions and 37 deletions
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 = '@';
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue