Fix moving over symbols, for example the equal sign
authorMiguel de Icaza <miguel@gnome.org>
Sat, 30 Aug 2008 16:36:13 +0000 (16:36 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Sat, 30 Aug 2008 16:36:13 +0000 (16:36 -0000)
svn path=/trunk/mcs/; revision=111973

mcs/mcs/getline.cs

index 0deb884ea9dbf44b154e0ee899f96f9f391c6830..0879b4a36ccd0514bfe644e29b1c699d8e4f8424 100644 (file)
@@ -12,7 +12,6 @@
 // USE -define:DEMO to build this as a standalone file and test it
 //
 // TODO:
-//    Word-move does not skip over "="
 //    Enter an error (a = 1);  Notice how the prompt is in the wrong line
 //             This is caused by Stderr not being tracked by System.Console.
 //    Typing before the program start causes the cursor position to be wrong
@@ -435,7 +434,7 @@ namespace Mono.Terminal {
                        if (i == 0)
                                return 0;
                        
-                       if (Char.IsPunctuation (text [i]) || Char.IsWhiteSpace (text[i])){
+                       if (Char.IsPunctuation (text [i]) || Char.IsSymbol (text [i]) || Char.IsWhiteSpace (text[i])){
                                for (; i >= 0; i--){
                                        if (Char.IsLetterOrDigit (text [i]))
                                                break;