kakoune/test/regression
Maxime Coste 246a32797a Fix region regexes incorrectly matching ^$ at end of line
Because no flags were set for regex matching, the regex engine was
assuming that the subject string past-the-end matched a end-of-line.
As the subject string already ended with a \n character, the regex
engine processing of the "past-the-end" position would match '^$'
as ^ matched past the existing \n and $ matched the assumed
end-of-line.

Fixes #3799
2020-10-12 12:41:21 +11:00
..
595-smart-search-unicode Expand env vars as list of strings 2020-03-02 20:53:28 +11:00
612-assertion-with-NormalBegin-hook
633-spurious-new-line-inserted-when-replacing-at-end
638-highlight-codepoint-with-bracket test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
643-crash-on-a-@-on-specially-crafted-buffer
654-crash-on-undo-after-macro
699-to-eol-from-eol Expand env vars as list of strings 2020-03-02 20:53:28 +11:00
704-crash-when-using-a-hook-on-NormalBegin-and-NormalEnd
733-selection-list-from-string-not-valid
743-crash-on-replace-undo
751-wrong-selection-after-undo test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
787-crash-after-S Do not allow repeating last insert when we are not in normal mode 2017-06-27 09:57:10 +01:00
809-alt-f-t-to-first-char test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
811-double-width-codepoints test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
844-prev-word-at-buffer-start test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
860-python-incorrect-commenting Add categories in rc/ 2019-03-21 01:06:16 +01:00
872-indentation-misbeahviour-c++ Add categories in rc/ 2019-03-21 01:06:16 +01:00
918-wrong-asterisk-inserted Add categories in rc/ 2019-03-21 01:06:16 +01:00
921-keep-empty-line-matches-all-lines test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
993-user-text-object
1014-ambiguous-kak_selections test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
1051-crash-on-empty-param
1053-crash-on-deletion-and-paste
1074-comment-leader-autoinsert-error Add categories in rc/ 2019-03-21 01:06:16 +01:00
1105-object-selection-behaviour test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
1111-unexpected-behaviour-on-new-line-in-comment Add categories in rc/ 2019-03-21 01:06:16 +01:00
1118-misaligned-comment-start Add categories in rc/ 2019-03-21 01:06:16 +01:00
1129-capture-groups-are-broken
1195-infinite-loop-in-regex-matching Make recurse regex opt-in with a -recurse switch instead of opt-out 2018-07-05 07:54:28 +10:00
1227-segfault-on-option-access
1233-corrent-cursor-handling-for-indent-objects test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
1275-replaced-range-split Rename highlighters that used an underscore to use a dash 2018-07-08 19:14:15 +10:00
1308-wrong-behaviour-of-kak-indent-on-newline test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
1382-column-highlighter-broken-on-horizontal-scroll test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
1433-scrolloff-broken-with-soft-wrap test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
1435-misplaced-cursor-with-show_matching-hl test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
1453-show_whitespaces-highlighter-breaks-tab-alignment test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
1459-assertion-on-wrapped-long-line Fix tests and required scripts to get back to green make test 2018-07-05 07:54:28 +10:00
1469-assert-on-repeat-insert Do not allow repeating last insert when we are not in normal mode 2017-06-27 09:57:10 +01:00
1504-assertion-on-incorrect-pipe-use Expand env vars as list of strings 2020-03-02 20:53:28 +11:00
1518-wrong-undo-handling-with-fifo-buffers Purge history on buffer reload when NoUndo flag is on 2017-08-04 11:39:28 +07:00
1525-lua-indent-error Add categories in rc/ 2019-03-21 01:06:16 +01:00
1580-A-not-moving-to-eol Expand env vars as list of strings 2020-03-02 20:53:28 +11:00
1680-crash-with-dot-and-alt-semicolon Change a on end of line behaviour to be consistent 2018-07-05 08:00:14 +10:00
1731-wrap-hidden-buffer test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
1741-scrolloff-hides-end-of-lines test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
1829-unicode-as-string-delimiter Fix parsing of percent tokens with unicode separators 2018-02-06 20:29:08 +11:00
1902-regex-lookbehind-ignore-before-current-pos Expand env vars as list of strings 2020-03-02 20:53:28 +11:00
1904-select-empty-line-indent-gets-whole-buffer test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
1920-crash-on-python-in-docstring test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
1937-opening-missing-file-by-full-path-fails Fix implementation of real_path to handle non-existing directories in / 2018-03-18 23:23:00 +11:00
1964-O-does-not-position-cursor-correctly Fix 'O' not putting the cursor on the correct line 2018-03-27 07:28:25 +11:00
2030-custom-selection-nesting test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
2056-assert-on-small-window Fix test suite freeze 2019-11-12 09:39:37 -05:00
2078-assert-on-restoring-invalid-selections Expand env vars as list of strings 2020-03-02 20:53:28 +11:00
2129-inside-parentheses test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
2133-assert-on-rotate-contents Refactor the way main selection is determined after rotating contents 2018-06-21 08:07:17 +10:00
2245-wrap-long-word test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
2367-surround-with-tight-nesting test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
2420-discrepancy-in-star-behaviour Expand env vars as list of strings 2020-03-02 20:53:28 +11:00
2499-html-regions-assert test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
2562-column-highlighter-bleeding test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
2711-weird-regex-highlighter-behaviour test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
2737-segfault-on-WinDisplay-hook Add a test case for WinDisplay segfault 2019-02-17 11:21:26 +11:00
2755-segfault-on-double-wrap-highlighters Fix use of invalidated iterators in highlight_range 2019-03-05 20:31:40 +11:00
2861-backspace-merges-selections Do not merge selections on backspace in insert mode 2019-05-29 23:12:04 +10:00
2999-buggy-wrapping test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
3010-extra_word_chars-fails-with-other-buffers Filter non-extra_word_chars completion candidates using Codepoints 2019-07-09 19:36:57 +10:00
3025-last-buffer-does-not-work-in-draft-context Ensure current context switches away from buffer on delete-buffer 2019-07-22 20:26:39 +10:00
3041-invalid-regex-highlight-accross-regions Split RegexHighlighters matches per requested buffer ranges 2020-01-05 18:58:32 +11:00
3048-word-wrapping-broken test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
3219-scroll-json-ui Add a regression test for #3219, which does not seem to fail 2019-11-24 18:11:29 +11:00
3270-crash-in-autocomplete Update inserted range when generating InsertCompletionHide hook param 2020-01-08 20:33:26 +11:00
3275-crash-on-replace-at-buffer-start Fix replacing at begining of buffer 2019-12-31 12:49:24 +11:00
3349-crash-in-completion Fix invalid access to deleted line when updating insert completion 2020-03-14 13:49:52 +11:00
3388-command-line-parsing-does-not-preserve-invalid-utf8 Fix use of non-posix \x printf escape 2020-03-13 09:33:19 +11:00
3398-readonly-fifo-failure Allow reading from fifo in readonly buffers 2020-03-14 12:58:22 +11:00
3439-parse-ascii-newline-as-return Parse ascii newline/tab/escape as special keys instead of control keys 2020-04-13 12:44:15 +10:00
3472-crash-on-to-sentence-start Fix select_sentence going past the end of the buffer 2020-05-10 15:13:15 +10:00
3478-crash-on-scroll Fix selections getting unsorted on scroll 2020-07-05 10:13:57 +10:00
3489-crash-on-paragraph-begin Fix crash when selecting previous paragraph at buffer begin 2020-05-17 14:15:48 +02:00
3495-crash-highlighting-hidden-lines Fix invalid regions with begin > end being generated 2020-05-28 20:58:46 +10:00
3544-capture-get-lost Fix select wiping captures 2020-06-07 14:12:54 +10:00
3733-modeline-parsing-off-by-one-line test: Implement a regression test for #3733 2020-09-16 11:00:15 +03:00
3735-modeline-arbitrary-code-execution test: Implement a regression test for #3735 2020-09-18 09:01:32 +03:00
3757-crash-on-capture-group-select Ensure that the capture group actually matched in select_matches 2020-09-22 21:14:40 +10:00
3799-incorrect-region-match Fix region regexes incorrectly matching ^$ at end of line 2020-10-12 12:41:21 +11:00
0-assert-on-itersel test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
0-comment-after-command Fix command parsing bug when commenting after a command 2017-05-25 08:30:49 +01:00
0-compute-modified-range-crash Fix an assert in compute modified ranges when merging single char ranges 2017-07-14 12:42:43 +09:00
0-crash-on-backspace-at-buffer-begin Fix crash recently introduced when deleting at buffer start in insert mode 2017-06-15 17:35:48 +01:00
0-crash-on-BufSetOption-hook Add regression test for crash on BufSetOption hook 2018-05-21 20:36:25 +10:00
0-crash-on-delete-buffer-BufClose Fix crash when deleting buffers in a BufClose hook 2019-11-22 20:29:55 +11:00
0-crash-on-pipe-with-selection-access test: Allow expect-style UI tests, testing any var 2019-10-13 14:57:24 -04:00
0-crash-on-specialy-crafted-modeline Fix crash on expanding command line strings 2018-03-18 04:58:15 +11:00
0-deindent-on-mixed-indent-line Improve deindent behaviour with mixed indent 2018-12-13 17:35:16 +11:00
0-nothing-selected-on-prompt-initial-shift-tab Added shell command completion support to define-command and prompt 2018-10-03 09:46:31 -07:00
0-open-below-should-not-move-cursor-on-eol Expand env vars as list of strings 2020-03-02 20:53:28 +11:00
0-replace-last-eol-with-eol Fix replacing last eol with a single eol 2017-06-26 16:16:46 +01:00
0-rotate-at-eof-mutates-selection Cleanup replaced range selection logic 2019-12-18 11:36:17 +11:00
0-select-object-with-empty-begin-match Fix issue with select object and empty matches 2020-04-21 13:21:35 +10:00
0-spurious-undo-group-on-external Only commit undo groups when buffer was modified 2018-09-12 20:02:57 +10:00
0-undo-change-at-eof Fix corner case in compute_modified_ranges 2017-06-11 12:25:12 +01:00