summaryrefslogtreecommitdiffstats
path: root/src/os_mswin.c
AgeCommit message (Collapse)Author
2024-01-12patch 9.1.0026: win32: Windows default font lackingv9.1.0026Ken Takata
Problem: win32: Windows default font lacking (@clach04) Solution: Improve default font (Ken Takata) win32: Improve default font Currently, Fixedsys is the default font on Windows. It is not suitable for recent High DPI environments. * Change the default font to Consolas. * Allow to change the default font by the translation message. E.g.: ``` msgid "DefaultFontNameForWindows" msgstr "Courier New" ``` fixes: #12919 closes: #13266 Signed-off-by: Ken Takata <kentkt@csc.jp> Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-01-04patch 9.1.0006: is*() and to*() function may be unsafev9.1.0006Keith Thompson
Problem: is*() and to*() function may be unsafe Solution: Add SAFE_* macros and start using those instead (Keith Thompson) Use SAFE_() macros for is*() and to*() functions The standard is*() and to*() functions declared in <ctype.h> have undefined behavior for negative arguments other than EOF. If plain char is signed, passing an unchecked value from argv for from user input to one of these functions has undefined behavior. Solution: Add SAFE_*() macros that cast the argument to unsigned char. Most implementations behave sanely for negative arguments, and most character values in practice are non-negative, but it's still best to avoid undefined behavior. The change from #13347 has been omitted, as this has already been separately fixed in commit ac709e2fc0db6d31abb7da96f743c40956b60c3a (v9.0.2054) fixes: #13332 closes: #13347 Signed-off-by: Keith Thompson <Keith.S.Thompson@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-05patch 9.0.1991: no cmdline completion for setting the fontv9.0.1991Yee Cheng Chin
Problem: no cmdline completion for setting the font Solution: enable it on Win32 and GTK builds Add guifont cmdline completion (for Windows and GTK) For Windows, auto-complete will only suggest monospace fonts as that's the only types allowed. Will also suggest font options after the colon, including suggesting the current font size for convenience, and misc charset and quality options like `cANSI` and `qCLEARTYPE`. For GTK, auto-complete will suggest only monospace fonts for `guifont` but will include all fonts for `guifontwide`. The completion code doesn't currently suggest the current font size, as the GTK guifont format does not have a clear delimiter (':' for other platforms). closes: #13264 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yee Cheng Chin <ychin.git@gmail.com>
2023-08-20patch 9.0.1769: executable() ignoring symlinks on Windowsv9.0.1769AmberArr
Problem: executable() ignoring symlinks on Windows Solution: resolve reparse points closes: #12562 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: AmberArr <me@frost.moe>
2023-01-16patch 9.0.1210: compiler complains about declaration after labelv9.0.1210Bram Moolenaar
Problem: Compiler complains about declaration after label. Solution: Move declaration to beginning of block (John Marriott)
2023-01-16patch 9.0.1208: code is indented more than necessaryv9.0.1208Yegappan Lakshmanan
Problem: Code is indented more than necessary. Solution: Use an early return where it makes sense. (Yegappan Lakshmanan, closes #11819)
2022-09-18patch 9.0.0496: no good reason to keep supporting Windows-XPv9.0.0496K.Takata
Problem: No good reason to keep supporting Windows-XP. Solution: Drop Windows-XP support. (Ken Takata, closes #11089)
2022-06-27patch 8.2.5171: dependencies and proto files are outdatedv8.2.5171Bram Moolenaar
Problem: Dependencies and proto files are outdated. Solution: Update dependencies and proto files. Avoid errors.
2022-06-17patch 8.2.5118: MS-Windows: sending a message to another Vim may hangv8.2.5118K.Takata
Problem: MS-Windows: sending a message to another Vim may hang if that Vim is halted. Solution: Add a timeout to serverSendToVim(). (Ken Takata, closes #10585)
2022-06-13patch 8.2.5085: gcc gives warning for signed/unsigned differencev8.2.5085Bram Moolenaar
Problem: Gcc gives warning for signed/unsigned difference. Solution: Use a different pointer type. (John Marriott)
2022-06-13patch 8.2.5084: when the GUI shows a dialog tests get stuckv8.2.5084Bram Moolenaar
Problem: When the GUI shows a dialog tests get stuck. Solution: Add the --gui-dialog-file argument.
2022-06-08patch 8.2.5069: various warnings from clang on MS-Windowsv8.2.5069Yegappan Lakshmanan
Problem: Various warnings from clang on MS-Windows. Solution: Fix the code to avoid the warnings. (Yegappan Lakshmanan, closes #10538)
2022-05-12patch 8.2.4945: inconsistent use of white spacev8.2.4945Bram Moolenaar
Problem: Inconsistent use of white space. Solution: Use Tabs and Spaces consistently.
2022-05-05patch 8.2.4875: MS-Windows: some .exe files are not recognizedv8.2.4875LemonBoy
Problem: MS-Windows: some .exe files are not recognized. Solution: Parse APPEXECLINK junctions. (closes #10302)
2022-01-24patch 8.2.4199: MS-Windows: Support for MSVC 2003 is not usefulv8.2.4199K.Takata
Problem: MS-Windows: Support for MSVC 2003 is not useful. Solution: Remove the exceptions for MSVC 2003. (Ken Takata, closes #9616)
2022-01-21patch 8.2.4170: MS-Windows: still using old message API callsv8.2.4170K.Takata
Problem: MS-Windows: still using old message API calls. Solution: Call the "W" functions directly. (Ken Takata, closes #9582)
2022-01-04patch 8.2.4003: error messages are spread outv8.2.4003Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
2022-01-01patch 8.2.3975: error messages are spread outv8.2.3975Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more error messages to errors.h.
2022-01-01patch 8.2.3970: error messages are spread outv8.2.3970Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2022-01-01patch 8.2.3967: error messages are spread outv8.2.3967Bram Moolenaar
Problem: Error messages are spread out. Solution: Move more errors to errors.h.
2021-12-29patch 8.2.3939: MS-Windows: fnamemodify('', ':p') does not workv8.2.3939Yegappan Lakshmanan
Problem: MS-Windows: fnamemodify('', ':p') does not work. Solution: Do not consider an empty string a full path. (Yegappan Lakshmanan, closes #9428, closes #9427)
2021-12-27patch 8.2.3914: various spelling mistakes in commentsv8.2.3914Dominique Pelle
Problem: Various spelling mistakes in comments. Solution: Fix the mistakes. (Dominique Pellé, closes #9416)
2021-12-16patch 8.2.3824: no ASAN support for MSVCv8.2.3824Yegappan Lakshmanan
Problem: No ASAN support for MSVC. Solution: Add ASAN support and fix a coupld of uncovered problems. (Yegappan Lakshmanan, closes #9357)
2021-11-29patch 8.2.3699: the +title feature adds a lot of #ifdef but little codev8.2.3699Bram Moolenaar
Problem: The +title feature adds a lot of #ifdef but little code. Solution: Graduate the +title feature.
2020-12-11patch 8.2.2129: MS-Windows: Checking if a file name is absolute is slowv8.2.2129Bram Moolenaar
Problem: MS-Windows: Checking if a file name is absolute is slow. Solution: Do not use mch_FullName(). (closes #7033)
2020-05-17patch 8.2.0774: t_TI and t_TE are output when using 'visualbell'v8.2.0774Bram Moolenaar
Problem: t_TI and t_TE are output when using 'visualbell'. (Dominique Pelle) Solution: Do not change the terminal mode for a short sleep. Do not output t_TI and t_TE when switching to/from TMODE_SLEEP. Make tmode an enum.
2020-04-12patch 8.2.0559: clearing a struct is verbosev8.2.0559Bram Moolenaar
Problem: Clearing a struct is verbose. Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
2020-01-17patch 8.2.0125: :mode no longer works for any systemv8.2.0125Bram Moolenaar
Problem: :mode no longer works for any system. Solution: Always give an error message.
2019-12-05patch 8.1.2393: using old C style commentsv8.1.2393Bram Moolenaar
Problem: Using old C style comments. Solution: Use // comments where appropriate.
2019-12-01patch 8.1.2376: preprocessor indents are incorrectv8.1.2376Bram Moolenaar
Problem: Preprocessor indents are incorrect. Solution: Fix the indents. (Ken Takata, closes #5298)
2019-10-06patch 8.1.2120: some MB_ macros are more complicated than necessaryv8.1.2120Bram Moolenaar
Problem: Some MB_ macros are more complicated than necessary. (Dominique Pelle) Solution: Simplify the macros. Expand inline.
2019-09-21patch 8.1.2064: MS-Windows: compiler warnings for unused argumentsv8.1.2064Bram Moolenaar
Problem: MS-Windows: compiler warnings for unused arguments. Solution: Add UNUSED. (Yegappan Lakshmanan, closes #4963)
2019-08-01patch 8.1.1784: MS-Windows: resolve() does not work if serial nr duplicatedv8.1.1784Bram Moolenaar
Problem: MS-Windows: resolve() does not work if serial nr duplicated. Solution: Use another method to get the full path. (Ken Takata, closes #4661)
2019-06-06patch 8.1.1473: new resolve() implementation causes problem for pluginsv8.1.1473Bram Moolenaar
Problem: New resolve() implementation causes problem for plugins. Solution: Only resolve a resparse point after checking it is needed. (Ken Takata, closes #4492)
2019-05-29patch 8.1.1417: MS-Windows: resolve() does not resolve all components of pathv8.1.1417Bram Moolenaar
Problem: MS-Windows: resolve() does not resolve all components of the path. (David Briscoe) Solution: Do not bail out for a reparse point. (Yasuhiro Matsumoto, closes #4211, closes #4447)
2019-05-28patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar
Problem: Alloc() returning "char_u *" causes a lot of type casts. Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to check the simple allocations.
2019-05-24patch 8.1.1386: unessesary type casts for lalloc()v8.1.1386Bram Moolenaar
Problem: Unessesary type casts for lalloc(). Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
2019-05-24patch 8.1.1384: using "int" for alloc() often results in compiler warningsv8.1.1384Bram Moolenaar
Problem: Using "int" for alloc() often results in compiler warnings. Solution: Use "size_t" and remove type casts. Remove alloc_check(), Vim only works with 32 bit ints anyway.
2019-05-09patch 8.1.1306: Borland support is outdated and doesn't workv8.1.1306Bram Moolenaar
Problem: Borland support is outdated and doesn't work. Solution: Remove Borland support, there are other (free) compilers available. (Thomas Dziedzic, Ken Takata, closes #4364)
2019-04-28patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exev8.1.1230Bram Moolenaar
Problem: A lot of code is shared between vim.exe and gvim.exe. Solution: Optionally put the shared code in vim.dll. (Ken Takata, closes #4287)
2019-04-28patch 8.1.1224: MS-Windows: cannot specify font weightv8.1.1224Bram Moolenaar
Problem: MS-Windows: cannot specify font weight. Solution: Add the "W" option to 'guifont'. (closes #4309) Move GUI font explanation out of options.txt.
2019-04-17patch 8.1.1182: some function prototypes are outdatedv8.1.1182Bram Moolenaar
Problem: Some function prototypes are outdated. Solution: Update function prototypes. (Ken Takata, closes #4267)
2019-04-02patch 8.1.1103: MS-Windows: old API calls are no longer neededv8.1.1103Bram Moolenaar
Problem: MS-Windows: old API calls are no longer needed. Solution: Always use the wide functions. (Ken Takata, closes #4199)
2019-03-30patch 8.1.1086: too many curly bracesv8.1.1086Bram Moolenaar
Problem: Too many curly braces. Solution: Remove curly braces where they are not needed. (Hirohito Higashi, closes #3982)
2019-03-30patch 8.1.1081: MS-Windows: cannot use some fontsv8.1.1081Bram Moolenaar
Problem: MS-Windows: cannot use fonts whose name cannot be represented in the current code page. Solution: Use wide font functions. (Ken Takata, closes #4000)
2019-02-17patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar
Problem: Macros for MS-Windows are inconsistent, using "32", "3264 and others. Solution: Use MSWIN for all MS-Windows builds. Use FEAT_GUI_MSWIN for the GUI build. (Hirohito Higashi, closes #3932)
2019-02-14patch 8.1.0918: MS-Windows: startup messages are not convertedv8.1.0918Bram Moolenaar
Problem: MS-Windows: startup messages are not converted. Solution: Convert messages when the current codepage differs from 'encoding'. (Yasuhiro Matsumoto, closes #3914)
2019-02-12patch 8.1.0906: using clumsy way to get console window handlev8.1.0906Bram Moolenaar
Problem: Using clumsy way to get console window handle. Solution: Use GetConsoleWindow(). (Ken Takata, closes #3940)
2019-02-10patch 8.1.0894: MS-Windows: resolve() does not return a reparse pointv8.1.0894Bram Moolenaar
Problem: MS-Windows: resolve() does not return a reparse point. Solution: Improve resolve(). (Yasuhiro Matsumoto, closes #3896)
2019-01-24patch 8.1.0809: too many #ifdefsv8.1.0809Bram Moolenaar
Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 3.