Add marker-line functionality for scrollback, instant seek.

Fixes #662.
This commit is contained in:
RichardHitt
2014-04-02 16:09:13 -07:00
parent 5e8bc980e1
commit 0f828dd74f
7 changed files with 124 additions and 10 deletions

View File

@@ -528,6 +528,8 @@ new_ircwindow (server *serv, char *name, int type, int focus)
irc_init (sess);
chanopt_load (sess);
scrollback_load (sess);
if (sess->scrollwritten && sess->scrollback_replay_marklast)
sess->scrollback_replay_marklast (sess);
plugin_emit_dummy_print (sess, "Open Context");
return sess;

View File

@@ -459,6 +459,7 @@ typedef struct session
int doing_who:1; /* /who sent on this channel */
int done_away_check:1; /* done checking for away status changes */
gtk_xtext_search_flags lastlog_flags;
void (*scrollback_replay_marklast) (struct session *sess);
} session;
struct msproxy_state_t

View File

@@ -608,6 +608,8 @@ inbound_ujoin (server *serv, char *chan, char *nick, char *ip,
{
chanopt_load (sess);
scrollback_load (sess);
if (sess->scrollwritten && sess->scrollback_replay_marklast)
sess->scrollback_replay_marklast (sess);
}
fe_set_channel (sess);