SF.net SVN: geany:[4113] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Fri Aug 21 10:49:50 UTC 2009


Revision: 4113
          http://geany.svn.sourceforge.net/geany/?rev=4113&view=rev
Author:   ntrel
Date:     2009-08-21 10:49:50 +0000 (Fri, 21 Aug 2009)

Log Message:
-----------
Set the cursor color for the split window.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/plugins/splitwindow.c

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-08-20 12:16:28 UTC (rev 4112)
+++ trunk/ChangeLog	2009-08-21 10:49:50 UTC (rev 4113)
@@ -2,6 +2,8 @@
 
  * doc/Doxyfile.in, plugins/geanyfunctions.h, plugins/genapi.py:
    Add geanyfunctions.h to API docs.
+ * plugins/splitwindow.c:
+   Set the cursor color for the split window.
 
 
 2009-08-18  Nick Treleaven  <nick(dot)treleaven(at)btinternet(dot)com>

Modified: trunk/plugins/splitwindow.c
===================================================================
--- trunk/plugins/splitwindow.c	2009-08-20 12:16:28 UTC (rev 4112)
+++ trunk/plugins/splitwindow.c	2009-08-21 10:49:50 UTC (rev 4113)
@@ -97,11 +97,10 @@
 static void set_styles(ScintillaObject *oldsci, ScintillaObject *newsci)
 {
 	gint style_id;
+	gint val;
 
 	for (style_id = 0; style_id <= 127; style_id++)
 	{
-		gint val;
-
 		val = sci_get_value(oldsci, SCI_STYLEGETFORE, style_id);
 		scintilla_send_message(newsci, SCI_STYLESETFORE, style_id, val);
 		val = sci_get_value(oldsci, SCI_STYLEGETBACK, style_id);
@@ -111,6 +110,8 @@
 		val = sci_get_value(oldsci, SCI_STYLEGETITALIC, style_id);
 		scintilla_send_message(newsci, SCI_STYLESETITALIC, style_id, val);
 	}
+	val = sci_get_value(oldsci, SCI_GETCARETFORE, 0);
+	scintilla_send_message(newsci, SCI_SETCARETFORE, val, 0);
 }
 
 


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