Kaydet (Commit) fc1023a9 authored tarafından Nick Treleaven's avatar Nick Treleaven

On loading use SCI_SETTEXT instead of SCI_ADDTEXT to avoid Scintilla text changed signal

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@363 ea778897-0a13-0410-b9d1-a72fbfd435f5
üst ecc80819
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:
......
......@@ -508,8 +508,8 @@ void document_open_file(gint idx, const gchar *filename, gint pos, gboolean read
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);
......
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