Mercurial > vim
comparison src/getchar.c @ 10640:27be410d6d29 v8.0.0210
patch 8.0.0210: no support for bracketed paste
commit https://github.com/vim/vim/commit/ec2da36ca48b40c0654b32a8d2c9f52e796daa5e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 21 20:04:22 2017 +0100
patch 8.0.0210: no support for bracketed paste
Problem: Vim does not support bracketed paste, as implemented by xterm and
other terminals.
Solution: Add t_BE, t_BD, t_PS and t_PE.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 21 Jan 2017 20:15:04 +0100 |
parents | 055b1633aed7 |
children | fa69f6272692 |
comparison
equal
deleted
inserted
replaced
10639:9b3141c5aa1b | 10640:27be410d6d29 |
---|---|
1815 | 1815 |
1816 do | 1816 do |
1817 { | 1817 { |
1818 c = safe_vgetc(); | 1818 c = safe_vgetc(); |
1819 } while (c == K_IGNORE || c == K_VER_SCROLLBAR || c == K_HOR_SCROLLBAR); | 1819 } while (c == K_IGNORE || c == K_VER_SCROLLBAR || c == K_HOR_SCROLLBAR); |
1820 | |
1821 if (c == K_PS) | |
1822 /* Only handle the first pasted character. Drop the rest, since we | |
1823 * don't know what to do with it. */ | |
1824 c = bracketed_paste(PASTE_ONE_CHAR, FALSE, NULL); | |
1825 | |
1820 return c; | 1826 return c; |
1821 } | 1827 } |
1822 | 1828 |
1823 /* | 1829 /* |
1824 * Check if a character is available, such that vgetc() will not block. | 1830 * Check if a character is available, such that vgetc() will not block. |
1904 old_mouse_col = mouse_col; | 1910 old_mouse_col = mouse_col; |
1905 #endif | 1911 #endif |
1906 } | 1912 } |
1907 | 1913 |
1908 /* | 1914 /* |
1909 * get a character: | 1915 * Get a character: |
1910 * 1. from the stuffbuffer | 1916 * 1. from the stuffbuffer |
1911 * This is used for abbreviated commands like "D" -> "d$". | 1917 * This is used for abbreviated commands like "D" -> "d$". |
1912 * Also used to redo a command for ".". | 1918 * Also used to redo a command for ".". |
1913 * 2. from the typeahead buffer | 1919 * 2. from the typeahead buffer |
1914 * Stores text obtained previously but not used yet. | 1920 * Stores text obtained previously but not used yet. |