summaryrefslogtreecommitdiff
path: root/src/gui_gtk_x11.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2009-07-01 16:04:58 +0000
committerBram Moolenaar <Bram@vim.org>2009-07-01 16:04:58 +0000
commitbbc936bebec333159bdf43ffbf0da18880023059 (patch)
tree1e4fbbbd61eeb6dcc5c6e1888295b37bd383d826 /src/gui_gtk_x11.c
parent2bc76e617b85366156c3aed82db20dcac52c64fc (diff)
downloadvim-git-bbc936bebec333159bdf43ffbf0da18880023059.tar.gz
updated for version 7.2-221v7.2.221
Diffstat (limited to 'src/gui_gtk_x11.c')
-rw-r--r--src/gui_gtk_x11.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/src/gui_gtk_x11.c b/src/gui_gtk_x11.c
index 29ab9a799..33fdaed48 100644
--- a/src/gui_gtk_x11.c
+++ b/src/gui_gtk_x11.c
@@ -6717,8 +6717,6 @@ clip_mch_request_selection(VimClipboard *cbd)
{
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 *cbd)
}
/* 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);
}
/*