Revision: 3807
http://geany.svn.sourceforge.net/geany/?rev=3807&view=rev
Author: ntrel
Date: 2009-05-20 14:42:55 +0000 (Wed, 20 May 2009)
Log Message:
-----------
Fix multiline indent when selection covers text on the last line.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/editor.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-05-19 21:06:04 UTC (rev 3806)
+++ trunk/ChangeLog 2009-05-20 14:42:55 UTC (rev 3807)
@@ -1,3 +1,9 @@
+2009-05-20 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
+
+ * src/editor.c:
+ Fix multiline indent when selection covers text on the last line.
+
+
2009-05-19 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
* src/symbols.c, tagmanager/python.c:
Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c 2009-05-19 21:06:04 UTC (rev 3806)
+++ trunk/src/editor.c 2009-05-20 14:42:55 UTC (rev 3807)
@@ -3396,8 +3396,8 @@
}
-/* extra_line is for selecting the cursor line or anchor line at the bottom of a selection,
- * when those lines have no selection. */
+/* extra_line is for selecting the cursor line (or anchor line) at the bottom of a selection,
+ * when those lines have no selection (cursor at start of line). */
void editor_select_lines(GeanyEditor *editor, gboolean extra_line)
{
gint start, end, line;
@@ -4542,6 +4542,8 @@
end = sci_get_selection_end(sci);
lstart = sci_get_line_from_position(sci, start);
lend = sci_get_line_from_position(sci, end);
+ if (end == sci_get_length(sci))
+ lend++; /* for last line with text on it */
for (line = lstart; line < lend; line++)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 3806
http://geany.svn.sourceforge.net/geany/?rev=3806&view=rev
Author: eht16
Date: 2009-05-19 21:06:04 +0000 (Tue, 19 May 2009)
Log Message:
-----------
Fix quoting the build command string on Windows (closes #2791769). This broke when we made build commands run synchronously on Windows, now we don't need to special quote the commands anymore.
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/build.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-05-19 20:17:37 UTC (rev 3805)
+++ trunk/ChangeLog 2009-05-19 21:06:04 UTC (rev 3806)
@@ -6,6 +6,10 @@
* src/editor.c, src/editor.h:
Make some only locally used functions static.
Fix wrong sanity check.
+ * src/build.c:
+ Fix quoting the build command string on Windows (closes #2791769).
+ This broke when we made build commands run synchronously on Windows,
+ now we don't need to special quote the commands anymore.
2009-05-19 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
Modified: trunk/src/build.c
===================================================================
--- trunk/src/build.c 2009-05-19 20:17:37 UTC (rev 3805)
+++ trunk/src/build.c 2009-05-19 21:06:04 UTC (rev 3806)
@@ -507,13 +507,7 @@
g_free(executable);
#ifdef G_OS_WIN32
- /* due to g_shell_parse_argv() we need to enclose the command(first element) of cmd_string with
- * "" if the command contains a full path(i.e. backslashes) otherwise the backslashes will be
- * eaten by g_shell_parse_argv(). */
- setptr(cmd_string, quote_executable(cmd_string));
- if (! g_shell_parse_argv(cmd_string, NULL, &argv, NULL))
- /* if automatic parsing failed, fall back to simple, unsafe argv creation */
- argv = g_strsplit(cmd_string, " ", 0);
+ argv = g_strsplit(cmd_string, " ", 0);
#else
argv = g_new0(gchar *, 4);
argv[0] = g_strdup("/bin/sh");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 3803
http://geany.svn.sourceforge.net/geany/?rev=3803&view=rev
Author: ntrel
Date: 2009-05-19 11:21:18 +0000 (Tue, 19 May 2009)
Log Message:
-----------
Drop rest of word to the right of cursor when autocompleting (do we
need a pref for this?).
Modified Paths:
--------------
trunk/ChangeLog
trunk/src/editor.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-05-18 15:17:48 UTC (rev 3802)
+++ trunk/ChangeLog 2009-05-19 11:21:18 UTC (rev 3803)
@@ -1,3 +1,10 @@
+2009-05-19 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
+
+ * src/editor.c:
+ Drop rest of word to the right of cursor when autocompleting (do we
+ need a pref for this?).
+
+
2009-05-18 Nick Treleaven <nick(dot)treleaven(at)btinternet(dot)com>
* src/sciwrappers.c, src/sciwrappers.h, src/editor.c:
Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c 2009-05-18 15:17:48 UTC (rev 3802)
+++ trunk/src/editor.c 2009-05-19 11:21:18 UTC (rev 3803)
@@ -4282,6 +4282,7 @@
sci_set_caret_policy_x(sci, CARET_JUMPS | CARET_EVEN, 0);
/*sci_set_caret_policy_y(sci, CARET_JUMPS | CARET_EVEN, 0);*/
SSM(sci, SCI_AUTOCSETSEPARATOR, '\n', 0);
+ SSM(sci, SCI_AUTOCSETDROPRESTOFWORD, TRUE, 0);
SSM(sci, SCI_SETSCROLLWIDTHTRACKING, 1, 0);
/* only connect signals if this is for the document notebook, not split window */
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
Revision: 3801
http://geany.svn.sourceforge.net/geany/?rev=3801&view=rev
Author: ntrel
Date: 2009-05-18 15:01:21 +0000 (Mon, 18 May 2009)
Log Message:
-----------
Update manual for MRU switching.
Modified Paths:
--------------
trunk/ChangeLog
trunk/doc/geany.html
trunk/doc/geany.txt
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2009-05-18 14:51:37 UTC (rev 3800)
+++ trunk/ChangeLog 2009-05-18 15:01:21 UTC (rev 3801)
@@ -2,6 +2,8 @@
* src/sciwrappers.c, src/sciwrappers.h, src/editor.c:
Add sci_set_selection().
+ * doc/geany.txt, doc/geany.html:
+ Update manual for MRU switching.
2009-05-17 Enrico Tröger <enrico(dot)troeger(at)uvena(dot)de>
Modified: trunk/doc/geany.html
===================================================================
--- trunk/doc/geany.html 2009-05-18 14:51:37 UTC (rev 3800)
+++ trunk/doc/geany.html 2009-05-18 15:01:21 UTC (rev 3801)
@@ -6,7 +6,7 @@
<meta name="generator" content="Docutils 0.4: http://docutils.sourceforge.net/" />
<title>Geany</title>
<meta name="authors" content="Enrico Tröger Nick Treleaven Frank Lanitz" />
-<meta name="date" content="2009-05-02" />
+<meta name="date" content="2009-05-12" />
<style type="text/css">
/*
@@ -139,7 +139,7 @@
<br />Nick Treleaven
<br />Frank Lanitz</td></tr>
<tr><th class="docinfo-name">Date:</th>
-<td>2009-05-02</td></tr>
+<td>2009-05-12</td></tr>
<tr><th class="docinfo-name">Version:</th>
<td>0.18</td></tr>
</tbody>
@@ -882,6 +882,8 @@
combination to move between tabs, the order is determined by the tab
order, not alphabetical as shown in the documents list (regardless
of whether or not editor tabs are visible).</p>
+<p>See the <em>Notebook tabs</em> group in the <a class="reference" href="#keybindings">Keybindings</a> section for useful
+shortcuts including for Most-Recently-Used document switching.</p>
</div>
</div>
<div class="section">
@@ -2664,9 +2666,9 @@
<p>The following table lists all customizable keyboard shortcuts.</p>
<table border="1" class="docutils">
<colgroup>
-<col width="29%" />
+<col width="28%" />
<col width="23%" />
-<col width="48%" />
+<col width="49%" />
</colgroup>
<thead valign="bottom">
<tr><th class="head">Action</th>
@@ -3134,7 +3136,13 @@
</tr>
<tr><td>Switch to last used document</td>
<td>Ctrl-Tab</td>
-<td>Switches to the previously selected open document.</td>
+<td>Switches to the previously shown document (if it's
+still open).
+Holding Ctrl (or another modifier if the keybinding
+has been changed) will show a dialog, then repeated
+presses of the keybinding will switch to the 2nd-last
+used document, 3rd-last, etc. Also known as
+Most-Recently-Used documents switching.</td>
</tr>
<tr><td>Move document left</td>
<td>Alt-PageUp</td>
@@ -4859,7 +4867,7 @@
<div class="footer">
<hr class="footer" />
<a class="reference" href="geany.txt">View document source</a>.
-Generated on: 2009-05-12 15:38 UTC.
+Generated on: 2009-05-18 15:00 UTC.
Generated by <a class="reference" href="http://docutils.sourceforge.net/">Docutils</a> from <a class="reference" href="http://docutils.sourceforge.net/rst.html">reStructuredText</a> source.
</div>
Modified: trunk/doc/geany.txt
===================================================================
--- trunk/doc/geany.txt 2009-05-18 14:51:37 UTC (rev 3800)
+++ trunk/doc/geany.txt 2009-05-18 15:01:21 UTC (rev 3801)
@@ -500,7 +500,10 @@
order, not alphabetical as shown in the documents list (regardless
of whether or not editor tabs are visible).
+See the *Notebook tabs* group in the `Keybindings`_ section for useful
+shortcuts including for Most-Recently-Used document switching.
+
Character sets and Unicode Byte-Order-Mark (BOM)
------------------------------------------------
@@ -2775,7 +2778,13 @@
Switch to right document Ctrl-PageDown Switches to the next open document.
-Switch to last used document Ctrl-Tab Switches to the previously selected open document.
+Switch to last used document Ctrl-Tab Switches to the previously shown document (if it's
+ still open).
+ Holding Ctrl (or another modifier if the keybinding
+ has been changed) will show a dialog, then repeated
+ presses of the keybinding will switch to the 2nd-last
+ used document, 3rd-last, etc. Also known as
+ Most-Recently-Used documents switching.
Move document left Alt-PageUp Changes the current document with the left hand
one.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.