Ticket #1368 (Incorrect detected start of the word)

fix: removed char "_" in edit_find_word_start as SOW (start of the word)
add more chars as SOW
This commit is contained in:
Ilia Maslakov 2009-06-22 08:47:32 +00:00
parent 63786f2b7f
commit 522f310871

View File

@ -2246,7 +2246,7 @@ static int edit_find_word_start (WEdit *edit, long *word_start, int *word_len)
last = c;
c = (unsigned char) edit_get_byte (edit, edit->curs1 - i);
if (isspace (c) || c == '_') {
if (isspace (c) || strchr("{}[]()<>=|/\\!?~'\",.;:#$%^&*", c)) {
/* return if word starts with digit */
if (isdigit (last))
return 0;