Code cleanup
This commit is contained in:
parent
0e48ebc0e1
commit
532bdb65f7
@ -406,9 +406,7 @@ void editor_open(Editor * editor, char const * filename)
|
|||||||
editor->search = 0;
|
editor->search = 0;
|
||||||
if(filename == NULL)
|
if(filename == NULL)
|
||||||
{
|
{
|
||||||
gtk_text_buffer_set_modified(GTK_TEXT_BUFFER(
|
gtk_text_buffer_set_modified(tbuf, FALSE);
|
||||||
gtk_text_view_get_buffer(GTK_TEXT_VIEW(
|
|
||||||
editor->view))), FALSE);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if((fp = fopen(filename, "r")) == NULL)
|
if((fp = fopen(filename, "r")) == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user