=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/window-copy.c,v retrieving revision 1.337 retrieving revision 1.338 diff -c -r1.337 -r1.338 *** src/usr.bin/tmux/window-copy.c 2022/07/22 07:14:07 1.337 --- src/usr.bin/tmux/window-copy.c 2022/08/03 13:27:48 1.338 *************** *** 1,4 **** ! /* $OpenBSD: window-copy.c,v 1.337 2022/07/22 07:14:07 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: window-copy.c,v 1.338 2022/08/03 13:27:48 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 3673,3678 **** --- 3673,3679 ---- if (direction && window_copy_search_mark_at(data, fx, fy, &at) == 0 && at > 0 && + data->searchmark != NULL && data->searchmark[at] == data->searchmark[at - 1]) { window_copy_move_after_search_mark(data, &fx, &fy, wrapflag); *************** *** 3705,3710 **** --- 3706,3712 ---- &start) == 0) { while (window_copy_search_mark_at(data, fx, fy, &at) == 0 && + data->searchmark != NULL && data->searchmark[at] == data->searchmark[start]) { data->cx = fx;