aboutsummaryrefslogtreecommitdiffhomepage
path: root/teco.ini
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-20 06:17:39 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2014-11-20 06:17:39 +0100
commitefa646da494c659d24bc1f09936645eed1a10244 (patch)
tree3c85985b5c91630224a909fc40cf2e6996a3c645 /teco.ini
parentb0bc20bdeae770de3726f87d8ea13038491b2e29 (diff)
renamed ED hook register to "ED" and protect ED hook executions
SciTECO commands usually only take parameters from the stack that they need. Without protecting the ED hook execution with brace operators, additional arguments not consumed by the hook-dispatching command are passed into the ED hook invocation. Also an ED hook macro could leave additional values on the expression stack (by accident). All of this may lead to undefined behaviour if ED hooks are involved.
Diffstat (limited to 'teco.ini')
-rw-r--r--teco.ini2
1 files changed, 1 insertions, 1 deletions
diff --git a/teco.ini b/teco.ini
index 73ca3a7..498bb67 100644
--- a/teco.ini
+++ b/teco.ini
@@ -8,7 +8,7 @@ EMQ[$SCITECOPATH]/color.tes
EMQ[$SCITECOPATH]/lexer.tes
! Automatic lexing using ED hooks !
-@0{
+@#ED{
Oadd,edit,close,quit
!add!
M[lexer.auto]