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:
Vatiken 2012-02-27 01:04:09 +00:00
parent bf26d79323
commit 70d7785fea
11 changed files with 49 additions and 37 deletions

View file

@ -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 = '@';
}