summaryrefslogtreecommitdiff
path: root/src/fe-text/textbuffer-commands.c
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2008-03-09 12:01:16 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2008-03-09 12:01:16 +0000
commit7df46597e17ff7af4a660ab47673fe2cabc91db6 (patch)
tree2e2abd9c8e4de4e7311c0506119142f62a78a2f1 /src/fe-text/textbuffer-commands.c
parent496d82ac4843b3dcf8fe64c216470f41f91120d9 (diff)
downloadirssi-7df46597e17ff7af4a660ab47673fe2cabc91db6.zip
Use g_ascii_str{,n}casecmp for case insensitive comparison with
ascii only strings. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4738 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/textbuffer-commands.c')
-rw-r--r--src/fe-text/textbuffer-commands.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fe-text/textbuffer-commands.c b/src/fe-text/textbuffer-commands.c
index 4313cc2d..78d7e003 100644
--- a/src/fe-text/textbuffer-commands.c
+++ b/src/fe-text/textbuffer-commands.c
@@ -69,12 +69,12 @@ static void cmd_window_scroll(const char *data)
GUI_WINDOW_REC *gui;
gui = WINDOW_GUI(active_win);
- if (g_strcasecmp(data, "default") == 0) {
+ if (g_ascii_strcasecmp(data, "default") == 0) {
gui->use_scroll = FALSE;
- } else if (g_strcasecmp(data, "on") == 0) {
+ } else if (g_ascii_strcasecmp(data, "on") == 0) {
gui->use_scroll = TRUE;
gui->scroll = TRUE;
- } else if (g_strcasecmp(data, "off") == 0) {
+ } else if (g_ascii_strcasecmp(data, "off") == 0) {
gui->use_scroll = TRUE;
gui->scroll = FALSE;
} else if (*data != '\0') {