Revision: 363 Author: ntrel Date: 2006-05-25 05:57:12 -0700 (Thu, 25 May 2006) ViewCVS: http://svn.sourceforge.net/geany/?rev=363&view=rev
Log Message: ----------- On loading use SCI_SETTEXT instead of SCI_ADDTEXT to avoid Scintilla text changed signal
Modified Paths: -------------- trunk/ChangeLog trunk/src/document.c Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2006-05-24 16:56:14 UTC (rev 362) +++ trunk/ChangeLog 2006-05-25 12:57:12 UTC (rev 363) @@ -1,3 +1,9 @@ +2006-05-25 Nick Treleaven nick.treleaven@btinternet.com + + * src/document.c: On loading use SCI_SETTEXT instead of SCI_ADDTEXT + to avoid Scintilla text changed signal. + + 2006-05-24 Nick Treleaven nick.treleaven@btinternet.com
* src/keybindings.c, src/keybindings.h:
Modified: trunk/src/document.c =================================================================== --- trunk/src/document.c 2006-05-24 16:56:14 UTC (rev 362) +++ trunk/src/document.c 2006-05-25 12:57:12 UTC (rev 363) @@ -508,8 +508,8 @@
if (! reload) idx = document_create_new_sci(utf8_filename);
- // sets editor mode and add the text to the ScintillaObject - sci_add_text_buffer(doc_list[idx].sci, data, size); + // set editor mode and add the text to the ScintillaObject + sci_set_text(doc_list[idx].sci, data); // NULL terminated data; avoids Unsaved editor_mode = utils_get_line_endings(data, size); sci_set_eol_mode(doc_list[idx].sci, editor_mode);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.