SF.net SVN: geany: [1673] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Sat Jul 7 14:19:07 UTC 2007


Revision: 1673
          http://svn.sourceforge.net/geany/?rev=1673&view=rev
Author:   eht16
Date:     2007-07-07 07:19:06 -0700 (Sat, 07 Jul 2007)

Log Message:
-----------
Include new line character(s) when selecting a paragraph.

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

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2007-07-07 11:33:32 UTC (rev 1672)
+++ trunk/ChangeLog	2007-07-07 14:19:06 UTC (rev 1673)
@@ -1,3 +1,9 @@
+2007-07-07  Enrico Tröger  <enrico.troeger at uvena.de>
+
+ * src/editor.c:
+   Include new line character(s) when selecting a paragraph.
+
+
 2007-07-07  Nick Treleaven  <nick.treleaven at btinternet.com>
 
  * scintilla/ScintillaGTK.cxx, src/highlighting.c, doc/geany.docbook,

Modified: trunk/src/editor.c
===================================================================
--- trunk/src/editor.c	2007-07-07 11:33:32 UTC (rev 1672)
+++ trunk/src/editor.c	2007-07-07 14:19:06 UTC (rev 1673)
@@ -2421,10 +2421,6 @@
 	line_found = find_paragraph_stop(sci, line_start, DOWN);
 	pos_end = SSM(sci, SCI_POSITIONFROMLINE, line_found, 0);
 
-	// if not on the last line of the document, end the selection on the previous line
-	if (line_found < (SSM(sci, SCI_GETLINECOUNT, 0, 0) -1))
-		pos_end--;
-
 	SSM(sci, SCI_SETSEL, pos_start, pos_end);
 }
 


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