SF.net SVN: geany:[4331] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Fri Oct 16 16:42:38 UTC 2009


Revision: 4331
          http://geany.svn.sourceforge.net/geany/?rev=4331&view=rev
Author:   ntrel
Date:     2009-10-16 16:42:38 +0000 (Fri, 16 Oct 2009)

Log Message:
-----------
Don't complete snippets if there's a selection.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/editor.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-10-16 16:36:09 UTC (rev 4330)
+++ trunk/ChangeLog	2009-10-16 16:42:38 UTC (rev 4331)
@@ -10,6 +10,8 @@
    Add SCI_AUTOCGETCURRENTTEXT message (will be sent upstream).
  * src/editor.c:
    Improve CamelCase word part autocompletion for runs of capital letters.
+ * src/editor.c:
+   Don't complete snippets if there's a selection.
 
 
 2009-10-16  Lex Trotman  <elextr(at)gmail(dot)com>

Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c	2009-10-16 16:36:09 UTC (rev 4330)
+++ trunk/src/editor.c	2009-10-16 16:42:38 UTC (rev 4331)
@@ -2368,6 +2368,8 @@
 	g_return_val_if_fail(editor != NULL, FALSE);
 
 	sci = editor->sci;
+	if (sci_has_selection(sci))
+		return FALSE;
 	/* return if we are editing an existing line (chars on right of cursor) */
 	if (keybindings_lookup_item(GEANY_KEY_GROUP_EDITOR,
 			GEANY_KEYS_EDITOR_COMPLETESNIPPET)->key == GDK_space &&


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list