Do not exit when the main view is reloaded due to option toggling
[tig.git] / include / tig / pager.h
blob191782e9a5e87954f946ef5441f82b719bf28b4d
1 /* Copyright (c) 2006-2015 Jonas Fonseca <jonas.fonseca@gmail.com>
3 * This program is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU General Public License as
5 * published by the Free Software Foundation; either version 2 of
6 * the License, or (at your option) any later version.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
14 #ifndef TIG_PAGER_H
15 #define TIG_PAGER_H
17 #include "tig/view.h"
19 bool pager_get_column_data(struct view *view, const struct line *line, struct view_column_data *column_data);
20 bool pager_read(struct view *view, struct buffer *buf, bool force_stop);
21 bool pager_common_read(struct view *view, const char *data, enum line_type type, struct line **line);
22 enum request pager_request(struct view *view, enum request request, struct line *line);
23 void pager_select(struct view *view, struct line *line);
25 extern struct view pager_view;
27 static inline void
28 open_pager_view(struct view *prev, enum open_flags flags)
30 open_view(prev, &pager_view, flags);
33 #endif
34 /* vim: set ts=8 sw=8 noexpandtab: */