diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-03-31 01:45:26 +0300 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2025-03-31 01:45:26 +0300 |
commit | f700268228c20548dc7d3fb756ef6286931e396c (patch) | |
tree | dda810d7a27e3a2bad95ab4b6cbfe7c1b2890783 /lib | |
parent | c9b6b25d0fc374d10d3f51971e1cca04648fcedd (diff) | |
download | sciteco-f700268228c20548dc7d3fb756ef6286931e396c.tar.gz |
opener.tes: fixed opening filename:line if filename has trailing digits
The trailing digits where cut off the filename.
E.g. when trying `sciteco test.f77:100`, we would open test.f on line 100 instead.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/opener.tes | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/opener.tes b/lib/opener.tes index 21c118d..6de6237 100644 --- a/lib/opener.tes +++ b/lib/opener.tes @@ -20,9 +20,10 @@ ' !* filename:line[:column][:] *! - LR -A-:"=R' <-A"DR|1;'> -A-:"= - \U.a R <-A"DR|1;'> -A-:"= - \U.l Q.aU.c R + LR -A-:"=R' + 0U.p <-%.pA"D|1;'> Q.pA-:"= + Q.p+1C \U.a R 0U.p <-%.pA"D|1;'> Q.pA-:"= + Q.p+1C \U.l Q.aU.c R | Q.aU.l 1U.c ' |