summaryrefslogtreecommitdiff
path: root/context/data/scite/context/scite-ctx-bidi.lua
diff options
context:
space:
mode:
Diffstat (limited to 'context/data/scite/context/scite-ctx-bidi.lua')
-rw-r--r--context/data/scite/context/scite-ctx-bidi.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/context/data/scite/context/scite-ctx-bidi.lua b/context/data/scite/context/scite-ctx-bidi.lua
index ab64da70d..5e75f7e4c 100644
--- a/context/data/scite/context/scite-ctx-bidi.lua
+++ b/context/data/scite/context/scite-ctx-bidi.lua
@@ -334,7 +334,7 @@ local function resolve_weak(list,size,start,limit,orderbefore,orderafter)
break
end
end
- local rundirection = runstart == start and sor or list[runstart-1].direction
+ local rundirection = runstart == start and sor or (runstart > 1 and list[runstart-1].direction)
if rundirection ~= "en" then
rundirection = runlimit == limit and orderafter or list[runlimit+1].direction
end