summaryrefslogtreecommitdiff
path: root/src/fe-common/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2003-10-11 00:19:34 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2003-10-11 00:19:34 +0000
commit1826812c9d4a980aeb20e4d89fa352616fb36c27 (patch)
treeebdfb1c4a2d2484bc232d96b889b4151277cc28d /src/fe-common/core
parent9ae4779c876360f574498fa567319301faa76fbf (diff)
downloadirssi-1826812c9d4a980aeb20e4d89fa352616fb36c27.zip
Changed some checks i_isspace() -> ' ' so that TAB isn't included in checks.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3130 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core')
-rw-r--r--src/fe-common/core/completion.c4
-rw-r--r--src/fe-common/core/fe-messages.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-common/core/completion.c b/src/fe-common/core/completion.c
index 7a9c9ad3..be8b76c5 100644
--- a/src/fe-common/core/completion.c
+++ b/src/fe-common/core/completion.c
@@ -38,7 +38,7 @@ static int last_want_space, last_line_pos;
((c) == ',')
#define isseparator(c) \
- (i_isspace(c) || isseparator_notspace(c))
+ ((c) == ' ' || isseparator_notspace(c))
void chat_completion_init(void);
void chat_completion_deinit(void);
@@ -530,7 +530,7 @@ static char *line_get_command(const char *line, char **args, int aliases)
} else {
checkcmd = g_strndup(line, (int) (ptr-line));
- while (i_isspace(*ptr)) ptr++;
+ while (*ptr == ' ') ptr++;
cmdargs = ptr;
}
diff --git a/src/fe-common/core/fe-messages.c b/src/fe-common/core/fe-messages.c
index 31bbbfad..2ae6c0e1 100644
--- a/src/fe-common/core/fe-messages.c
+++ b/src/fe-common/core/fe-messages.c
@@ -67,7 +67,7 @@ char *expand_emphasis(WI_ITEM_REC *item, const char *text)
/* check that the beginning marker starts a word, and
that the matching end marker ends a word */
- if ((pos > 0 && !i_isspace(bgn[-1])) || !ishighalnum(bgn[1]))
+ if ((pos > 0 && bgn[-1] != ' ') || !ishighalnum(bgn[1]))
continue;
if ((end = strchr(bgn+1, *bgn)) == NULL)
continue;