Mercurial > vim
comparison src/gui_w48.c @ 2311:ccda151dde4e vim73
Support completion for ":find". (Nazri Ramliy)
Cleanup white space.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 14 Jul 2010 16:52:17 +0200 |
parents | cccb71c2c5c1 |
children | f579b934f51d |
comparison
equal
deleted
inserted
replaced
2310:3e4574a4b627 | 2311:ccda151dde4e |
---|---|
939 /* If the OS is Windows NT, and 'encoding' differs from active codepage: | 939 /* If the OS is Windows NT, and 'encoding' differs from active codepage: |
940 * convert text from wide string. */ | 940 * convert text from wide string. */ |
941 if (os_version.dwPlatformId == VER_PLATFORM_WIN32_NT | 941 if (os_version.dwPlatformId == VER_PLATFORM_WIN32_NT |
942 && enc_codepage >= 0 && (int)GetACP() != enc_codepage) | 942 && enc_codepage >= 0 && (int)GetACP() != enc_codepage) |
943 { | 943 { |
944 findrep_wtoa(&s_findrep_struct, &s_findrep_struct_w); | 944 findrep_wtoa(&s_findrep_struct, &s_findrep_struct_w); |
945 } | 945 } |
946 # endif | 946 # endif |
947 | 947 |
948 if (s_findrep_struct.Flags & FR_DIALOGTERM) | 948 if (s_findrep_struct.Flags & FR_DIALOGTERM) |
949 /* Give main window the focus back. */ | 949 /* Give main window the focus back. */ |
1997 s_need_activate = FALSE; | 1997 s_need_activate = FALSE; |
1998 } | 1998 } |
1999 | 1999 |
2000 #ifdef FEAT_NETBEANS_INTG | 2000 #ifdef FEAT_NETBEANS_INTG |
2001 /* Process the queued netbeans messages. */ | 2001 /* Process the queued netbeans messages. */ |
2002 netbeans_parse_messages(); | 2002 netbeans_parse_messages(); |
2003 #endif | 2003 #endif |
2004 | 2004 |
2005 /* | 2005 /* |
2006 * Don't use gui_mch_update() because then we will spin-lock until a | 2006 * Don't use gui_mch_update() because then we will spin-lock until a |
2007 * char arrives, instead we use GetMessage() to hang until an | 2007 * char arrives, instead we use GetMessage() to hang until an |
2617 /* If the OS is Windows NT, and 'encoding' differs from active | 2617 /* If the OS is Windows NT, and 'encoding' differs from active |
2618 * codepage: convert text and use wide function. */ | 2618 * codepage: convert text and use wide function. */ |
2619 if (os_version.dwPlatformId == VER_PLATFORM_WIN32_NT | 2619 if (os_version.dwPlatformId == VER_PLATFORM_WIN32_NT |
2620 && enc_codepage >= 0 && (int)GetACP() != enc_codepage) | 2620 && enc_codepage >= 0 && (int)GetACP() != enc_codepage) |
2621 { | 2621 { |
2622 findrep_atow(&s_findrep_struct_w, &s_findrep_struct); | 2622 findrep_atow(&s_findrep_struct_w, &s_findrep_struct); |
2623 s_findrep_hwnd = FindTextW( | 2623 s_findrep_hwnd = FindTextW( |
2624 (LPFINDREPLACEW) &s_findrep_struct_w); | 2624 (LPFINDREPLACEW) &s_findrep_struct_w); |
2625 } | 2625 } |
2626 else | 2626 else |
2627 # endif | 2627 # endif |