Mercurial > vim
comparison src/gui_w32.c @ 8281:74b15ed0a259 v7.4.1433
commit https://github.com/vim/vim/commit/85b11769ab507c7df93f319fd964fa579701b76b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 27 18:13:23 2016 +0100
patch 7.4.1433
Problem: The Sniff interface is no longer useful, the tool has not been
available for may years.
Solution: Delete the Sniff interface and related code.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 27 Feb 2016 18:15:07 +0100 |
parents | 0c3210caefa6 |
children | debe6347024d |
comparison
equal
deleted
inserted
replaced
8280:65bed5ff0ba6 | 8281:74b15ed0a259 |
---|---|
324 static int s_findrep_is_find; /* TRUE for find dialog, FALSE | 324 static int s_findrep_is_find; /* TRUE for find dialog, FALSE |
325 for find/replace dialog */ | 325 for find/replace dialog */ |
326 #endif | 326 #endif |
327 | 327 |
328 static HINSTANCE s_hinst = NULL; | 328 static HINSTANCE s_hinst = NULL; |
329 #if !defined(FEAT_SNIFF) && !defined(FEAT_GUI) | 329 #if !defined(FEAT_GUI) |
330 static | 330 static |
331 #endif | 331 #endif |
332 HWND s_hwnd = NULL; | 332 HWND s_hwnd = NULL; |
333 static HDC s_hdc = NULL; | 333 static HDC s_hdc = NULL; |
334 static HBRUSH s_brush = NULL; | 334 static HBRUSH s_brush = NULL; |
1921 else | 1921 else |
1922 { | 1922 { |
1923 add_to_input_buf(str, (int)STRLEN(str)); | 1923 add_to_input_buf(str, (int)STRLEN(str)); |
1924 vim_free(str); /* was allocated in CVim::SendKeys() */ | 1924 vim_free(str); /* was allocated in CVim::SendKeys() */ |
1925 } | 1925 } |
1926 return; | |
1927 } | |
1928 #endif | |
1929 | |
1930 #ifdef FEAT_SNIFF | |
1931 if (sniff_request_waiting && want_sniff_request) | |
1932 { | |
1933 static char_u bytes[3] = {CSI, (char_u)KS_EXTRA, (char_u)KE_SNIFF}; | |
1934 add_to_input_buf(bytes, 3); /* K_SNIFF */ | |
1935 sniff_request_waiting = 0; | |
1936 want_sniff_request = 0; | |
1937 /* request is handled in normal.c */ | |
1938 } | |
1939 if (msg.message == WM_USER) | |
1940 { | |
1941 MyTranslateMessage(&msg); | |
1942 pDispatchMessage(&msg); | |
1943 return; | 1926 return; |
1944 } | 1927 } |
1945 #endif | 1928 #endif |
1946 | 1929 |
1947 #ifdef MSWIN_FIND_REPLACE | 1930 #ifdef MSWIN_FIND_REPLACE |