Tags: ibara/mg
Tags
Pull in latest OpenBSD code. Adds these two commits: --- line.c revision 1.62 date: 2020/07/22 13:22:53; author: tb; state: Exp; lines: +3 -1; commitid: sMKXiZaQt6pQNlHF; Prevent mg segfault with query-replace-regex replacing ^ Patch from Mark Willson with a minor tweak --- --- re_search.c revision 1.35 date: 2020/07/22 13:29:05; author: tb; state: Exp; lines: +9 -5; commitid: ludXw1r8c44HsOYs; Avoid running out of memory with query-replace-regex ^ Choosing ! (replace rest) never advances beyond the current line and keeps inserting the replacement test, and mg eventually runs out of memory. Patch from Mark Willson with minor stylistic tweaks. Looks good to Hiltjo Posthuma who would have preferred making forward replacing on empty lines work. Mark argued that this makes it behave consistently with the current behaviour when searching for ^ and the point at the beginning of a non-empty line in which case the cursor does not move either. Also tested by krw ---