comparison nnchat.c @ 404:d11a68f214eb

Fix indentation after astyle reindent.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 24 May 2012 05:29:03 +0300
parents 7bec02f382fb
children b4ed5d574edc
comparison
equal deleted inserted replaced
403:7bec02f382fb 404:d11a68f214eb
1179 endPos = startPos; 1179 endPos = startPos;
1180 while (startPos > 0 && str[startPos - 1] != ' ') startPos--; 1180 while (startPos > 0 && str[startPos - 1] != ' ') startPos--;
1181 mode = 1; 1181 mode = 1;
1182 } 1182 }
1183 else 1183 else
1184 /* middle of a word, new pattern */ 1184 /* middle of a word, new pattern */
1185 if (startPos < buf->len && str[startPos] != ' ') 1185 if (startPos < buf->len && str[startPos] != ' ')
1186 { 1186 {
1187 endPos = startPos; 1187 endPos = startPos;
1188 while (startPos > 0 && str[startPos - 1] != ' ') startPos--; 1188 while (startPos > 0 && str[startPos - 1] != ' ') startPos--;
1189 while (endPos < buf->len - 1 && str[endPos + 1] != ' ') endPos++; 1189 while (endPos < buf->len - 1 && str[endPos + 1] != ' ') endPos++;
1190 newPattern = TRUE; 1190 newPattern = TRUE;
1191 mode = 2; 1191 mode = 2;
1192 } 1192 }
1193 else 1193 else
1194 /* previous word, new pattern */ 1194 /* previous word, new pattern */
1195 if (startPos >= 1 && str[startPos - 1] != ' ') 1195 if (startPos >= 1 && str[startPos - 1] != ' ')
1196 { 1196 {
1197 startPos -= 1; 1197 startPos -= 1;
1198 endPos = startPos; 1198 endPos = startPos;
1199 while (startPos > 0 && str[startPos - 1] != ' ') startPos--; 1199 while (startPos > 0 && str[startPos - 1] != ' ') startPos--;
1200 newPattern = TRUE; 1200 newPattern = TRUE;
1201 mode = 3; 1201 mode = 3;
1202 } 1202 }
1203 else 1203 else
1204 { 1204 {
1205 if (optDebug) 1205 if (optDebug)
1206 printMsg(currWin, "no mode\n"); 1206 printMsg(currWin, "no mode\n");
1207 return FALSE; 1207 return FALSE;
1208 } 1208 }
1209 1209
1210 if (str[endPos] == optNickSep) 1210 if (str[endPos] == optNickSep)
1211 { 1211 {
1212 endPos--; 1212 endPos--;
1213 if (startPos > 0) 1213 if (startPos > 0)