Kaydet (Commit) 33f471c6 authored tarafından Colomban Wendling's avatar Colomban Wendling

Fix "toggle case" when there is no selection

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@5991 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst abefcc33
...@@ -3,6 +3,8 @@ ...@@ -3,6 +3,8 @@
* TODO, configure.ac, doc/geany.txt, geany.nsi, geany_private.rc, * TODO, configure.ac, doc/geany.txt, geany.nsi, geany_private.rc,
src/geany.h, win32-config.h, wscript: src/geany.h, win32-config.h, wscript:
Post-release version bump. 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> 2011-10-03 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
......
...@@ -740,7 +740,9 @@ void on_toggle_case1_activate(GtkMenuItem *menuitem, gpointer user_data) ...@@ -740,7 +740,9 @@ void on_toggle_case1_activate(GtkMenuItem *menuitem, gpointer user_data)
keybindings_send_command(GEANY_KEY_GROUP_SELECT, GEANY_KEYS_SELECT_WORD); keybindings_send_command(GEANY_KEY_GROUP_SELECT, GEANY_KEYS_SELECT_WORD);
keep_sel = FALSE; 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; gchar *result = NULL;
gint cmd = SCI_LOWERCASE; gint cmd = SCI_LOWERCASE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment