From efa646da494c659d24bc1f09936645eed1a10244 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Thu, 20 Nov 2014 06:17:39 +0100 Subject: 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. --- teco.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'teco.ini') 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] -- cgit v1.2.3