[mono/monodevelop] 6b87d5da: [Vi] Add support for centering the text editor.

"Cody Russell ([email protected])" <[email protected]>
Newsgroups gmane.comp.gnome.mono.patches
Message-ID <00000141c8352491-d09ac3fe-fdc3-44a8-b653-4b530c963241-000000@email.amazonses.com>
   Branch: refs/heads/center-text-in-vi-mode
     Home: https://github.com/mono/monodevelop
  Compare: https://github.com/mono/monodevelop/commit/6b87d5da1a5e

   Commit: 6b87d5da1a5e6aefea15c33e589e607108189ac6
   Author: Cody Russell <[email protected]> (bratsche)
     Date: 2013-10-17 20:55:55 GMT
      URL: https://github.com/mono/monodevelop/commit/6b87d5da1a5e6aefea15c33e589e607108189ac6

[Vi] Add support for centering the text editor.

Changed paths:
  M main/src/core/Mono.Texteditor/Mono.TextEditor.Vi/ViMode.cs

Modified: main/src/core/Mono.Texteditor/Mono.TextEditor.Vi/ViMode.cs
===================================================================
@@ -884,6 +884,11 @@ protected override void HandleKeypress (Gdk.Key key, uint unicodeKey, Gdk.Modifi
 						// Fold open
 							action = FoldActions.OpenFold;
 							break;
+						case 'z':
+						case '.':
+							editor.CenterToCaret ();
+							Reset ("");
+							break;
 						default:
 							Reset ("Unknown command");
 							break;


_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.