Skip to content
Tcl Source Code View Ticket
Login

View Ticket

tcl_startOfPreviousWord cannot handle "end-1"

Closed / Fixed16e25e140222d156f1859a7155d052815f86fc55Created 3 years agoUpdated 3 years ago
Descriptionwiki2024-01-26 13:29:01
$ tclsh8.6
% tcl_startOfPreviousWord "ab cd" end-1
bad index "end-1-1": must be integer?[+-]integer? or end?[+-]integer?

But

% tcl_endOfWord "ab cd" end-4
2
Referenced by5
  • c4c8b218e3Closed ticket [3e7c4a039d]: tcl_startOfPreviousWord ignores the last character when start is the string length plus 8 other changes ticket2026-10-26 14:04:11
  • 5e430a21cdFix [3e7c4a039d]: tcl_startOfPreviousWord ignores the last character when start is the string length. Drop the character at $start only if there is one (regression from [16e25e1402] in 8.6.14). check-in2026-10-25 12:03:35
  • dedf30ee6dMerge [bc2b770004fdf830]: Fix [16e25e1402]: tcl_startOfPreviousWord cannot handle "end-1". check-in2024-08-25 08:16:22
  • 8f65470f72Fix [16e25e1402]: tcl_startOfPreviousWord cannot handle "end-1" check-in2024-01-27 11:51:45
  • af214ab63bFix [16e25e1402]: tcl_startOfPreviousWord cannot handle "end-1" check-in2024-01-26 13:40:47
jan.nijtmans Ticket [16e25e1402]: 3 changes [History diff]2024-01-26 13:29:21
jan.nijtmanswiki2024-01-27 12:00:25

Fixed [here]

Log in (anonymous is fine) to add a comment.