mirror of https://gitlab.com/basile.b/dexed.git
fix possible range violation when allowing cursor past EOL
This commit is contained in:
parent
905aff9f90
commit
39d9ee85d1
|
@ -2573,7 +2573,7 @@ begin
|
||||||
if right then
|
if right then
|
||||||
c := s[p.x]
|
c := s[p.x]
|
||||||
else
|
else
|
||||||
c := s[p.x-1];
|
c := s[min(p.x-1, s.length)];
|
||||||
if not right then
|
if not right then
|
||||||
begin
|
begin
|
||||||
if c in w then
|
if c in w then
|
||||||
|
|
Loading…
Reference in New Issue