Mercurial > vim
comparison src/ex_getln.c @ 10676:b8c04c007d39 v8.0.0228
patch 8.0.0228: pasting in xterm on the command line has PasteStart
commit https://github.com/vim/vim/commit/abbc448bc09a292ec1263ffe69b4cb3d1c57f020
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 24 15:57:55 2017 +0100
patch 8.0.0228: pasting in xterm on the command line has PasteStart
Problem: When pasting test in an xterm on the command line it is surrounded
by <PasteStart> and <PasteEnd>. (Johannes Kaltenbach)
Solution: Add missing changes.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 Jan 2017 16:00:05 +0100 |
parents | ea0dadb041c9 |
children | fa6c4825a1c4 |
comparison
equal
deleted
inserted
replaced
10675:4fc5b92e6ae4 | 10676:b8c04c007d39 |
---|---|
1792 # endif | 1792 # endif |
1793 cmd_hkmap = !cmd_hkmap; | 1793 cmd_hkmap = !cmd_hkmap; |
1794 goto cmdline_not_changed; | 1794 goto cmdline_not_changed; |
1795 #endif | 1795 #endif |
1796 | 1796 |
1797 case K_PS: | |
1798 bracketed_paste(PASTE_CMDLINE, FALSE, NULL); | |
1799 goto cmdline_changed; | |
1800 | |
1797 default: | 1801 default: |
1798 #ifdef UNIX | 1802 #ifdef UNIX |
1799 if (c == intr_char) | 1803 if (c == intr_char) |
1800 { | 1804 { |
1801 gotesc = TRUE; /* will free ccline.cmdbuff after | 1805 gotesc = TRUE; /* will free ccline.cmdbuff after |
2364 char_u *s; | 2368 char_u *s; |
2365 | 2369 |
2366 if (ga_grow(&line_ga, 40) == FAIL) | 2370 if (ga_grow(&line_ga, 40) == FAIL) |
2367 break; | 2371 break; |
2368 | 2372 |
2369 /* Get one character at a time. Don't use inchar(), it can't handle | 2373 /* Get one character at a time. */ |
2370 * special characters. */ | |
2371 prev_char = c1; | 2374 prev_char = c1; |
2372 c1 = vgetc(); | 2375 c1 = vgetc(); |
2373 | 2376 |
2374 /* | 2377 /* |
2375 * Handle line editing. | 2378 * Handle line editing. |
2378 */ | 2381 */ |
2379 if (got_int) | 2382 if (got_int) |
2380 { | 2383 { |
2381 msg_putchar('\n'); | 2384 msg_putchar('\n'); |
2382 break; | 2385 break; |
2386 } | |
2387 | |
2388 if (c1 == K_PS) | |
2389 { | |
2390 bracketed_paste(PASTE_EX, FALSE, &line_ga); | |
2391 goto redraw; | |
2383 } | 2392 } |
2384 | 2393 |
2385 if (!escaped) | 2394 if (!escaped) |
2386 { | 2395 { |
2387 /* CR typed means "enter", which is NL */ | 2396 /* CR typed means "enter", which is NL */ |