term = "xterm-256color";
p = ncurses_init(ci->focus, tty, term);
- if (p) {
- struct pane *p2 = call_ret(pane, "attach-x11selection", p);
- if (p2)
- p = p2;
+ if (p)
return comm_call(ci->comm2, "callback:display", p);
- }
+
return Efail;
}
static struct pane *make_stack(struct pane *p, struct pane *doc)
{
+ if (p)
+ p = call_ret(pane, "attach-x11selection", p);
if (p)
p = call_ret(pane, "attach-messageline", p);
if (p)
s.set_long_property("Gtk-xft-dpi",sc*Pango.SCALE, "code")
disp = EdDisplay(focus, str1)
- p = disp.call("attach-x11selection", ret='pane')
- if not p:
- p = disp
- comm2('callback', p)
+ comm2('callback', disp)
return 1
def new_display2(key, focus, **a):
editor.call("global-set-command", "attach-display-pygtk", new_display)
editor.call("global-set-command", "interactive-cmd-x11window", new_display2)
-
for v in env:
p[v] = env[v]
self.disp = p
+ p = p.call("attach-x11selection", ret='pane')
p = p.call("attach-messageline", ret='pane')
p = p.call("attach-global-keymap", ret='pane')
p.call("attach-mode-emacs")