Fix move-forward-word by also considering symbols as punctuations (before we could...
authorMiguel de Icaza <miguel@gnome.org>
Thu, 22 Dec 2011 19:46:56 +0000 (14:46 -0500)
committerMiguel de Icaza <miguel@gnome.org>
Thu, 22 Dec 2011 19:47:13 +0000 (14:47 -0500)
mcs/tools/csharp/getline.cs

index f259f7357ed7ec5f1a3c00399ab0643ec384ed58..dee070c03f499dfc368aacdb7dbdf97c2d29cb8a 100644 (file)
@@ -506,7 +506,7 @@ namespace Mono.Terminal {
                                return -1;
 
                        int i = p;
-                       if (Char.IsPunctuation (text [p]) || Char.IsWhiteSpace (text[p])){
+                       if (Char.IsPunctuation (text [p]) || Char.IsSymbol (text [p]) || Char.IsWhiteSpace (text[p])){
                                for (; i < text.Length; i++){
                                        if (Char.IsLetterOrDigit (text [i]))
                                            break;