Mercurial > vim
diff src/gui_gtk_x11.c @ 1924:75a69023117c v7.2.221
updated for version 7.2-221
author | vimboss |
---|---|
date | Wed, 01 Jul 2009 16:04:58 +0000 |
parents | 062104a823df |
children | 26876d0f15e9 |
line wrap: on
line diff
--- a/src/gui_gtk_x11.c +++ b/src/gui_gtk_x11.c @@ -6717,8 +6717,6 @@ clip_mch_request_selection(VimClipboard { GdkAtom target; unsigned i; - int nbytes; - char_u *buffer; time_t start; for (i = 0; i < N_SELECTION_TARGETS; ++i) @@ -6746,22 +6744,7 @@ clip_mch_request_selection(VimClipboard } /* Final fallback position - use the X CUT_BUFFER0 store */ - nbytes = 0; - buffer = (char_u *)XFetchBuffer(GDK_WINDOW_XDISPLAY(gui.mainwin->window), - &nbytes, 0); - if (nbytes > 0) - { - /* Got something */ - clip_yank_selection(MCHAR, buffer, (long)nbytes, cbd); - if (p_verbose > 0) - { - verbose_enter(); - smsg((char_u *)_("Used CUT_BUFFER0 instead of empty selection")); - verbose_leave(); - } - } - if (buffer != NULL) - XFree(buffer); + yank_cut_buffer0(GDK_WINDOW_XDISPLAY(gui.mainwin->window), cbd); } /*