SF.net SVN: geany:[5991] trunk

colombanw at users.sourceforge.net colombanw at xxxxx
Mon Oct 3 17:05:25 UTC 2011


Revision: 5991
          http://geany.svn.sourceforge.net/geany/?rev=5991&view=rev
Author:   colombanw
Date:     2011-10-03 17:05:25 +0000 (Mon, 03 Oct 2011)
Log Message:
-----------
Fix "toggle case" when there is no selection

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2011-10-03 14:57:02 UTC (rev 5990)
+++ trunk/ChangeLog	2011-10-03 17:05:25 UTC (rev 5991)
@@ -3,6 +3,8 @@
  * TODO, configure.ac, doc/geany.txt, geany.nsi, geany_private.rc,
    src/geany.h, win32-config.h, wscript:
    Post-release version bump.
+ * src/callbacks.c:
+   Fix "toggle case" when there is no selection.
 
 
 2011-10-03  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>

Modified: trunk/src/callbacks.c
===================================================================
--- trunk/src/callbacks.c	2011-10-03 14:57:02 UTC (rev 5990)
+++ trunk/src/callbacks.c	2011-10-03 17:05:25 UTC (rev 5991)
@@ -740,7 +740,9 @@
 		keybindings_send_command(GEANY_KEY_GROUP_SELECT, GEANY_KEYS_SELECT_WORD);
 		keep_sel = FALSE;
 	}
-	else
+
+	/* either we already had a selection or we created one for current word */
+	if (sci_has_selection(sci))
 	{
 		gchar *result = NULL;
 		gint cmd = SCI_LOWERCASE;

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