From 522f31087126da70c7c22ed7557358724d69f0ac Mon Sep 17 00:00:00 2001 From: Ilia Maslakov Date: Mon, 22 Jun 2009 08:47:32 +0000 Subject: [PATCH] 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 --- edit/editcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edit/editcmd.c b/edit/editcmd.c index 0b8350355..08578dcca 100644 --- a/edit/editcmd.c +++ b/edit/editcmd.c @@ -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;