Commit 5ec9836f authored by Robert Sprowson's avatar Robert Sprowson
Browse files

[461] Pasting to empty Edit via a scrap file doesn't mark as edited

Only suppress the '*' when an existing file is dropped into an empty window, not if via scrap (ie. an application supporting the clipboard, but not the ram fetch protocol). Fixes ticket #461.
parent 20984a33
...@@ -2091,9 +2091,9 @@ void txtedit_doinsertfile(txtedit_state *s, char *filename, BOOL replaceifwasnul ...@@ -2091,9 +2091,9 @@ void txtedit_doinsertfile(txtedit_state *s, char *filename, BOOL replaceifwasnul
} else { } else {
if (tsize == 0) { if (tsize == 0) {
s->ty = ty; s->ty = ty;
txt_setcharoptions(s->t, txt_UPDATED + txt_DISPLAY, txt_DISPLAY);
txtundo_purge_undo(s->t); txtundo_purge_undo(s->t);
if (replaceifwasnull) { if (replaceifwasnull) {
txt_setcharoptions(s->t, txt_UPDATED + txt_DISPLAY, txt_DISPLAY);
strcpy(s->filename, filename); strcpy(s->filename, filename);
txtedit_settexttitle(s); txtedit_settexttitle(s);
}; };
......
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