Fix reloading of read-only documents.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1489 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
ec939b4736
commit
6287c9d146
@ -5,6 +5,8 @@
|
||||
UTF-8 automatically; mark error messages for translation.
|
||||
* src/search.c:
|
||||
Allow replacing identical text if case sensitive is not checked.
|
||||
* src/document.c:
|
||||
Fix reloading of read-only documents.
|
||||
|
||||
|
||||
2007-04-29 Nick Treleaven <nick.treleaven@btinternet.com>
|
||||
|
||||
@ -776,6 +776,7 @@ gint document_open_file(gint idx, const gchar *filename, gint pos, gboolean read
|
||||
sci_empty_undo_buffer(doc_list[idx].sci);
|
||||
|
||||
// add the text to the ScintillaObject
|
||||
sci_set_readonly(doc_list[idx].sci, FALSE); // to allow replacing text
|
||||
sci_set_text(doc_list[idx].sci, filedata.data); // NULL terminated data
|
||||
|
||||
// detect & set line endings
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user