summaryrefslogtreecommitdiff
path: root/src/misc1.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.0967: unnecessary type casts for vim_strnsave()v8.2.0967Bram Moolenaar2020-06-121-3/+3
| | | | | Problem: Unnecessary type casts for vim_strnsave(). Solution: Remove the type casts.
* patch 8.2.0946: cannot use "q" to cancel a number promptv8.2.0946Bram Moolenaar2020-06-101-3/+3
| | | | | Problem: Cannot use "q" to cancel a number prompt. Solution: Recognize "q" instead of ignoring it.
* patch 8.2.0728: messages about a deadly signal are not left alignedv8.2.0728Bram Moolenaar2020-05-101-2/+2
| | | | | Problem: Messages about a deadly signal are not left aligned. Solution: Output a CR before the NL. (Dominique Pelle, #6055)
* patch 8.2.0694: Haiku: channel and terminal do not workv8.2.0694Bram Moolenaar2020-05-031-12/+14
| | | | | | Problem: Haiku: channel and terminal do not work. Solution: Close files when the job has finished. (Ozaki Kiichi, closes #6039)
* patch 8.2.0559: clearing a struct is verbosev8.2.0559Bram Moolenaar2020-04-121-1/+1
| | | | | Problem: Clearing a struct is verbose. Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
* patch 8.2.0420: Vim9: cannot interrupt a loop with CTRL-Cv8.2.0420Bram Moolenaar2020-03-201-0/+13
| | | | | Problem: Vim9: cannot interrupt a loop with CTRL-C. Solution: Check for CTRL-C once in a while. Doesn't fully work yet.
* patch 8.2.0320: no Haiku supportv8.2.0320Bram Moolenaar2020-02-261-0/+16
| | | | | Problem: No Haiku support. Solution: Add support for Haiku. (Emir Sari, closes #5605)
* patch 8.2.0256: time and timer related code is spread outv8.2.0256Bram Moolenaar2020-02-141-31/+0
| | | | | | Problem: Time and timer related code is spread out. Solution: Move time and timer related code to a new file. (Yegappan Lakshmanan, closes #5604)
* patch 8.2.0200: Vim9 script commands not sufficiently testedv8.2.0200Bram Moolenaar2020-02-021-0/+16
| | | | | | Problem: Vim9 script commands not sufficiently tested. Solution: Add more tests. Fix storing global variable. Make script variables work.
* patch 8.2.0149: maintaining a Vim9 branch separately is more workv8.2.0149Bram Moolenaar2020-01-261-4/+8
| | | | | Problem: Maintaining a Vim9 branch separately is more work. Solution: Merge the Vim9 script changes.
* patch 8.2.0026: still some /* */ commentsv8.2.0026Bram Moolenaar2019-12-211-184/+183
| | | | | Problem: Still some /* */ comments. Solution: Convert to // comments.
* patch 8.1.2258: may get hit-enter prompt after entering a numberv8.1.2258Bram Moolenaar2019-11-051-0/+2
| | | | | Problem: May get hit-enter prompt after entering a number. (Malcolm Rowe) Solution: Put back accidentally deleted lines. (closes #5176)
* patch 8.1.2225: the "last used" info of a buffer is under usedv8.1.2225Bram Moolenaar2019-10-271-0/+31
| | | | | | Problem: The "last used" info of a buffer is under used. Solution: Add "lastused" to getbufinfo(). List buffers sorted by last-used field. (Andi Massimino, closes #4722)
* patch 8.1.2171: mouse support not always availablev8.1.2171Bram Moolenaar2019-10-171-4/+0
| | | | | | Problem: Mouse support not always available. Solution: Enable mouse support also in tiny version. Do not define FEAT_MOUSE_XTERM on MS-Windows (didn't really work).
* patch 8.1.2127: the indent.c file is a bit bigv8.1.2127Bram Moolenaar2019-10-091-556/+0
| | | | | | | Problem: The indent.c file is a bit big. Solution: Move C-indent code a a new cindent.c file. Move other indent-related code to indent.c. (Yegappan Lakshmanan, closes #5031)
* patch 8.1.2096: too many #ifdefsv8.1.2096Bram Moolenaar2019-09-281-6/+1
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_COMMENTS.
* patch 8.1.2066: no tests for state()v8.1.2066Bram Moolenaar2019-09-221-1/+1
| | | | | Problem: No tests for state(). Solution: Add tests. Clean up some feature checks. Make "a" flag work.
* patch 8.1.2062: the mouse code is spread outv8.1.2062Bram Moolenaar2019-09-211-44/+6
| | | | | | Problem: The mouse code is spread out. Solution: Move all the mouse code to mouse.c. (Yegappan Lakshmanan, closes #4959)
* patch 8.1.2047: cannot check the current statev8.1.2047Bram Moolenaar2019-09-161-0/+138
| | | | | Problem: Cannot check the current state. Solution: Add the state() function.
* patch 8.1.2021: some global functions can be local to the filev8.1.2021Bram Moolenaar2019-09-101-1/+1
| | | | | Problem: Some global functions can be local to the file. Solution: Add "static". (Yegappan Lakshmanan, closes #4917)
* patch 8.1.1985: code for dealing with paths is spread outv8.1.1985Bram Moolenaar2019-09-041-1676/+236
| | | | | | Problem: Code for dealing with paths is spread out. Solution: Move path related functions from misc1.c to filepath.c. Remove NO_EXPANDPATH.
* patch 8.1.1979: code for handling file names is spread outv8.1.1979Bram Moolenaar2019-09-041-2/+0
| | | | | Problem: Code for handling file names is spread out. Solution: Move code to new filepath.c file. Graduate FEAT_MODIFY_FNAME.
* patch 8.1.1897: may free memory twice when out of memoryv8.1.1897Bram Moolenaar2019-08-211-1/+3
| | | | | | Problem: May free memory twice when out of memory. Solution: Check that backslash_halve_save() returns a different pointer. (Dominique Pelle, closes #4847)
* patch 8.1.1891: functions used in one file are globalv8.1.1891Bram Moolenaar2019-08-201-1/+1
| | | | | Problem: Functions used in one file are global. Solution: Add "static". (Yegappan Lakshmanan, closes #4840)
* patch 8.1.1887: the +cmdline_compl feature is not in the tiny versionv8.1.1887Bram Moolenaar2019-08-181-11/+5
| | | | | Problem: The +cmdline_compl feature is not in the tiny version. Solution: Graduate the +cmdline_compl feature.
* patch 8.1.1724: too much overhead checking for CTRL-C while processing textv8.1.1724Bram Moolenaar2019-07-211-5/+1
| | | | | | Problem: Too much overhead checking for CTRL-C while processing text. Solution: Increase BREAKCHECK_SKIP. Remove the difference for when built with the GUI. (suggested by Andy Massimino, closes #4708)
* patch 8.1.1509: cmdline_row can become negative, causing a crashv8.1.1509Bram Moolenaar2019-06-091-3/+3
| | | | | Problem: Cmdline_row can become negative, causing a crash. Solution: Make sure cmdline_row does not become negagive. (closes #4102)
* patch 8.1.1393: unnecessary type castsv8.1.1393Bram Moolenaar2019-05-251-2/+2
| | | | | Problem: Unnecessary type casts. Solution: Remove type casts from alloc() and lalloc() calls. (Mike Williams)
* patch 8.1.1384: using "int" for alloc() often results in compiler warningsv8.1.1384Bram Moolenaar2019-05-241-6/+6
| | | | | | 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.
* patch 8.1.1371: cannot recover from a swap filev8.1.1371Bram Moolenaar2019-05-231-5/+13
| | | | | | | Problem: Cannot recover from a swap file. Solution: Do not expand environment variables in the swap file name. Do not check the extension when we already know a file is a swap file. (Ken Takata, closes 4415, closes #4369)
* patch 8.1.1359: text property wrong after :substitute with backslashv8.1.1359Bram Moolenaar2019-05-191-1/+1
| | | | | | Problem: Text property wrong after :substitute with backslash. Solution: Adjust text property columns when removing backslashes. (closes #4397)
* patch 8.1.1351: text property wrong after :substitutev8.1.1351Bram Moolenaar2019-05-191-1/+1
| | | | | Problem: Text property wrong after :substitute. Solution: Save for undo before changing any text properties.
* patch 8.1.1343: text properties not adjusted for Visual block mode deletev8.1.1343Bram Moolenaar2019-05-171-2/+9
| | | | | Problem: Text properties not adjusted for Visual block mode delete. Solution: Call adjust_prop_columns(). (closes #4384)
* patch 8.1.1318: code for text changes is in a "misc" filev8.1.1318Bram Moolenaar2019-05-111-2249/+0
| | | | | Problem: Code for text changes is in a "misc" file. Solution: Move the code to change.c.
* patch 8.1.1306: Borland support is outdated and doesn't workv8.1.1306Bram Moolenaar2019-05-091-8/+1
| | | | | | 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)
* patch 8.1.1143: may pass weird strings to file name expansionv8.1.1143Bram Moolenaar2019-04-101-2/+13
| | | | | Problem: May pass weird strings to file name expansion. Solution: Check for matching characters. Disallow control characters.
* patch 8.1.1120: cannot easily get directory entry matchesv8.1.1120Bram Moolenaar2019-04-051-0/+3
| | | | | Problem: Cannot easily get directory entry matches. Solution: Add the readdir() function. (Yasuhiro Matsumoto, closes #2439)
* patch 8.1.1103: MS-Windows: old API calls are no longer neededv8.1.1103Bram Moolenaar2019-04-021-42/+16
| | | | | Problem: MS-Windows: old API calls are no longer needed. Solution: Always use the wide functions. (Ken Takata, closes #4199)
* patch 8.1.1091: MS-Windows: cannot use multi-byte chars in environment varv8.1.1091Bram Moolenaar2019-03-301-44/+47
| | | | | Problem: MS-Windows: cannot use multi-byte chars in environment var. Solution: Use the wide API. (Ken Takata, closes #4008)
* patch 8.1.1086: too many curly bracesv8.1.1086Bram Moolenaar2019-03-301-4/+0
| | | | | | Problem: Too many curly braces. Solution: Remove curly braces where they are not needed. (Hirohito Higashi, closes #3982)
* patch 8.1.1011: indent from autoindent not removed from blank linev8.1.1011Bram Moolenaar2019-03-161-2/+0
| | | | | Problem: Indent from autoindent not removed from blank line. (Daniel Hahler) Solution: Do not reset did_ai when text follows. (closes #4119)
* patch 8.1.0963: illegal memory access when using 'incsearch'v8.1.0963Bram Moolenaar2019-02-211-0/+5
| | | | | Problem: Illegal memory access when using 'incsearch'. Solution: Reset highlight_match when changing text. (closes #4022)
* patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar2019-02-171-9/+9
| | | | | | | 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)
* patch 8.1.0914: code related to findfile() is spread outv8.1.0914Bram Moolenaar2019-02-131-453/+75
| | | | | | Problem: Code related to findfile() is spread out. Solution: Put findfile() related code into a new source file. (Yegappan Lakshmanan, closes #3934)
* patch 8.1.0857: indent functionality is not separatedv8.1.0857Bram Moolenaar2019-01-311-4346/+0
| | | | | | Problem: Ignore functionality is not separated. Solution: Move indent functionality into a new file. (Yegappan Lakshmanan, closes #3886)
* patch 8.1.0826: too many #ifdefsv8.1.0826Bram Moolenaar2019-01-261-16/+1
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
* patch 8.1.0806: too many #ifdefsv8.1.0806Bram Moolenaar2019-01-241-98/+8
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 2.
* patch 8.1.0785: depending on the configuration some functions are unusedv8.1.0785Bram Moolenaar2019-01-201-0/+2
| | | | | | Problem: Depending on the configuration some functions are unused. Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle, closes #3822)
* patch 8.1.0779: argument for message functions is inconsistentv8.1.0779Bram Moolenaar2019-01-191-9/+10
| | | | | Problem: Argument for message functions is inconsistent. Solution: Make first argument to msg() "char *".
* patch 8.1.0770: inconsistent use of ELAPSED_FUNCv8.1.0770Bram Moolenaar2019-01-171-1/+1
| | | | | | Problem: Inconsistent use of ELAPSED_FUNC. Solution: Consistently use ELAPSED_FUNC. Also turn ELAPSED_TYPE into a typedef. (Ozaki Kiichi, closes #3815)