diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2021-01-15 20:39:45 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2021-01-16 19:56:33 +0000 |
| commit | 22f25a9e4feddbc093ae01cd53bdda3c2c3a82e9 (patch) | |
| tree | 4d0c9bce90d0f0d04c22e9f88b52f910695cfaf6 /search.c | |
| parent | Merge branch 'decset-1047-and-1048' (diff) | |
Print stack trace on assert() failure or when calling fatal_error()
Note: this uses the __sanitizer_print_stack_trace() function from the
AddressSanitizer runtime, so it only works when AddressSanitizer is
in use.
Diffstat (limited to 'search.c')
| -rw-r--r-- | search.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -593,7 +593,6 @@ execute_binding(struct seat *seat, struct terminal *term, case BIND_ACTION_SEARCH_EDIT_LEFT_WORD: { size_t diff = distance_prev_word(term); term->search.cursor -= diff; - assert(term->search.cursor >= 0); assert(term->search.cursor <= term->search.len); return false; } @@ -606,7 +605,6 @@ execute_binding(struct seat *seat, struct terminal *term, case BIND_ACTION_SEARCH_EDIT_RIGHT_WORD: { size_t diff = distance_next_word(term); term->search.cursor += diff; - assert(term->search.cursor >= 0); assert(term->search.cursor <= term->search.len); return false; } |
