-- Leo's gemini proxy
-- Connecting to git.thebackupbox.net:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: fb787801ff5e1530c6e8f584387ff06f78895049: path_to: revision_to:
commit fb787801ff5e1530c6e8f584387ff06f78895049 Author: Emanuele Giaquinta <emanuele.giaquinta@gmail.com> Date: Mon Jan 31 15:40:22 2011 +0000 Simplify. diff --git a/src/screen.C b/src/screen.C
--- a/src/screen.C +++ b/src/screen.C @@ -2744,24 +2744,21 @@ rxvt_term::selection_paste (Window win, Atom prop, bool delete_prop) NOTHROW { if (prop == None) /* check for failed XConvertSelection */ { + int selnum = selection_type & Sel_whereMask; + + if (selnum == Sel_direct) + selection_type = 0; + if ((selection_type & Sel_CompoundText)) { - int selnum = selection_type & Sel_whereMask; - selection_type = 0; - if (selnum != Sel_direct) - selection_request_other (XA_STRING, selnum); + selection_request_other (XA_STRING, selnum); } if ((selection_type & Sel_UTF8String)) { - int selnum = selection_type & Sel_whereMask; - selection_type = Sel_CompoundText; - if (selnum != Sel_direct) - selection_request_other (xa[XA_COMPOUND_TEXT], selnum); - else - selection_type = 0; + selection_request_other (xa[XA_COMPOUND_TEXT], selnum); } return;
-----END OF PAGE-----
-- Response ended
-- Page fetched on Sun Jun 2 11:25:20 2024