diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-06-20 15:51:16 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2015-06-22 04:11:23 +0200 |
commit | ca6043bd631091661211d1e332d33219f967a043 (patch) | |
tree | 3120a796955ef5509630c3c33802439b55632f5a /sample.teco_ini | |
parent | 65a1e6150357599c33824ec99629c3f9556ac750 (diff) | |
download | sciteco-ca6043bd631091661211d1e332d33219f967a043.tar.gz |
sample.teco_ini: avoid unnecessary ED-hook recursions
* disable ED hook while exuting the "add" hook.
This avoids the "edit" hook being invoked recursively.
* the speed improvement was not measurable, but it also won't
hurt
Diffstat (limited to 'sample.teco_ini')
-rw-r--r-- | sample.teco_ini | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sample.teco_ini b/sample.teco_ini index 5a2b624..fdd20fb 100644 --- a/sample.teco_ini +++ b/sample.teco_ini @@ -13,12 +13,17 @@ EMQ[$SCITECOPATH]/session.tes Oadd,edit,close,quit !add! ! Add code here to execute when a document is added ! + 32,0ED + M[lexer.auto] + ! Set up margins ! 33ESTEXTWIDTH9U.w 5*Q.w,0ESSETMARGINWIDTHN 0,1ESSETMARGINWIDTHN Q.w,2ESSETMARGINWIDTHN + + 0,32ED ! fall through ! !edit! |