summaryrefslogtreecommitdiff
path: root/tex/context/base/spac-chr.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2013-03-19 15:40:14 +0200
committerMarius <mariausol@gmail.com>2013-03-19 15:40:14 +0200
commit001a15c01dd2201598cfea529fcf244c3a9aac06 (patch)
tree7be3874d6457f6423326550ead09e32d75ef5770 /tex/context/base/spac-chr.lua
parent8875d4e524d12defbe7e40f9e29b87cc928ce95b (diff)
downloadcontext-001a15c01dd2201598cfea529fcf244c3a9aac06.tar.gz
beta 2013.03.19 14:27
Diffstat (limited to 'tex/context/base/spac-chr.lua')
-rw-r--r--tex/context/base/spac-chr.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/tex/context/base/spac-chr.lua b/tex/context/base/spac-chr.lua
index f7a4e32ec..2502b1992 100644
--- a/tex/context/base/spac-chr.lua
+++ b/tex/context/base/spac-chr.lua
@@ -178,9 +178,9 @@ function characters.handler(head)
local current = head
local done = false
while current do
- local next = current.next
local id = current.id
if id == glyph_code then
+ local next = current.next
local char = current.char
local method = methods[char]
if method then
@@ -191,8 +191,10 @@ function characters.handler(head)
head = remove_node(head,current,true)
done = true
end
+ current = next
+ else
+ current = current.next
end
- current = next
end
return head, done
end