Text & code editor: Call the TextEditor.Reset() method when loading the contents, not to raise the Change event.
[DEVELOPMENT ENVIRONMENT] * BUG: Text & code editor: Call the TextEditor.Reset() method when loading the contents, not to raise the Change event.
This commit is contained in:
parent
d1fabcfe38
commit
dae0a9abe6
2 changed files with 4 additions and 7 deletions
|
@ -41,7 +41,6 @@ Static Private $sName As String
|
|||
|
||||
Private $hEditor As TextEditor
|
||||
Private $bModify As Boolean
|
||||
Private $bIgnoreNextChange As Boolean
|
||||
|
||||
Private $bToolbar As Boolean
|
||||
Private $iLastLine As Integer
|
||||
|
@ -374,10 +373,6 @@ End
|
|||
|
||||
Public Sub Editors_Change()
|
||||
|
||||
If $bIgnoreNextChange Then
|
||||
$bIgnoreNextChange = False
|
||||
Return
|
||||
Endif
|
||||
Modify
|
||||
|
||||
End
|
||||
|
@ -2274,8 +2269,6 @@ End
|
|||
|
||||
Public Sub Reload()
|
||||
|
||||
$bIgnoreNextChange = True
|
||||
|
||||
edtEditor.Load(Path, True)
|
||||
$hBookmark.Load()
|
||||
Breakpoints.Load(Me)
|
||||
|
@ -2287,6 +2280,8 @@ Public Sub Reload()
|
|||
SetReadOnly
|
||||
|
||||
UpdateDiffAction
|
||||
|
||||
$hEditor.Reset
|
||||
|
||||
End
|
||||
|
||||
|
|
|
@ -731,6 +731,8 @@ Public Sub Reload()
|
|||
If Settings["/FormatCode/FormatOnLoad"] Then MPrettyCode.Run(Me)
|
||||
|
||||
UpdateDiffAction
|
||||
|
||||
$hEditor.Reset
|
||||
|
||||
End
|
||||
|
||||
|
|
Loading…
Reference in a new issue