=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/window-copy.c,v retrieving revision 1.337 retrieving revision 1.338 diff -u -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 +1,4 @@ -/* $OpenBSD: window-copy.c,v 1.337 2022/07/22 07:14:07 nicm Exp $ */ +/* $OpenBSD: window-copy.c,v 1.338 2022/08/03 13:27:48 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -3673,6 +3673,7 @@ 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,6 +3706,7 @@ &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;