mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 07:40:27 +02:00
Revert "Opening same file in a second window don't destroy any changes"
This reverts commit cf81682bbb
This commit is contained in:
parent
cf81682bbb
commit
dcdfad4dc2
@ -2217,9 +2217,7 @@ begin
|
||||
AFileName:='';
|
||||
New(Editor, Init(R, HSB, VSB, Indicator,AFileName));
|
||||
Editor^.GrowMode:=gfGrowHiX+gfGrowHiY;
|
||||
{load from file if there is no other window with the same file }
|
||||
if Editor^.Core^.GetBindingCount = 1 then
|
||||
if LoadFile then
|
||||
if LoadFile then
|
||||
begin
|
||||
if Editor^.LoadFile=false then
|
||||
ErrorBox(FormatStrStr(msg_errorreadingfile,AFileName),nil)
|
||||
|
Loading…
Reference in New Issue
Block a user