Change find-window and monitor-content to use fnmatch(3). For convenience and

compatibility, *s are implicitly added at the start and end of the pattern.

Also display the line number and the entire line in the results, and lose the
nasty section_string function and the now empty util.c file.

Initially from Tiago Cunha.
This commit is contained in:
Nicholas Marriott
2009-06-24 22:49:56 +00:00
parent 096cbf2ea5
commit 7e796dea03
8 changed files with 44 additions and 83 deletions

View File

@ -32,7 +32,7 @@ SRCS= arg.c attributes.c buffer-poll.c buffer.c cfg.c client-fn.c \
mode-key.c names.c options-cmd.c options.c paste.c procname.c \
resize.c screen-redraw.c screen-write.c screen.c server-fn.c \
server-msg.c server.c session.c status.c tmux.c tty-keys.c tty-term.c \
tty-write.c tty.c utf8.c util.c window-choose.c window-clock.c \
tty-write.c tty.c utf8.c window-choose.c window-clock.c \
window-copy.c window-more.c window-scroll.c window.c xmalloc.c
CFLAGS+= -Wno-long-long -Wall -W -Wnested-externs -Wformat=2