summaryrefslogtreecommitdiff
path: root/src/misc1.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.0.1014: old compiler doesn't know uint32_tv8.0.1014Bram Moolenaar2017-08-301-1/+1
| | | | | | Problem: Old compiler doesn't know uint32_t. Warning for using NULL instead of NUL. Solution: Use UINT32_T. Use NUL instead of NULL.
* patch 8.0.1012: MS-Windows: problem with $HOME when is was set internallyv8.0.1012Bram Moolenaar2017-08-291-34/+34
| | | | | | Problem: MS-Windows: Problem with $HOME when is was set internally. Solution: Only use the $HOME default internally. (Yasuhiro Matsumoto, closes #2013)
* patch 8.0.0999: indenting raw C++ strings is wrongv8.0.0999Bram Moolenaar2017-08-261-11/+18
| | | | | Problem: Indenting raw C++ strings is wrong. Solution: Add special handling of raw strings. (Christian Brabandt)
* patch 8.0.0883: invalid memory access with nonsensical scriptv8.0.0883Bram Moolenaar2017-08-061-5/+10
| | | | | Problem: Invalid memory access with nonsensical script. Solution: Check "dstlen" being positive. (Dominique Pelle)
* patch 8.0.0875: crash with weird command sequencev8.0.0875Bram Moolenaar2017-08-051-1/+1
| | | | | Problem: Crash with weird command sequence. (Dominique Pelle) Solution: Use vim_snprintf() instead of STRCPY().
* patch 8.0.0851: 'smartindent' is used even when 'indentexpr' is setv8.0.0851Bram Moolenaar2017-08-031-0/+3
| | | | | Problem: 'smartindent' is used even when 'indentexpr' is set. Solution: Ignore 'smartindent' when 'indentexpr' is set. (Hirohito Higashi)
* patch 8.0.0722: screen is messed by timer up at inputlist() promptv8.0.0722Bram Moolenaar2017-07-161-1/+1
| | | | | Problem: Screen is messed by timer up at inputlist() prompt. Solution: Set state to ASKMORE. (closes #1843)
* patch 8.0.0683: visual bell flashes too quicklyv8.0.0683Bram Moolenaar2017-06-271-8/+22
| | | | | | | | Problem: When using a visual bell there is no delay, causing the flash to be very short, possibly unnoticeable. Also, the flash and the beep can lockup the UI when repeated often. Solution: Do the delay in Vim or flush the output before the delay. Limit the bell to once per half a second. (Ozaki Kiichi, closes #1789)
* patch 8.0.0577: warning for uninitialized variablev8.0.0577Bram Moolenaar2017-04-211-1/+1
| | | | | Problem: Warning for uninitialized variable. (John Marriott) Solution: Initialize "indent".
* patch 8.0.0575: using freed memory when resetting 'indentexpr'v8.0.0575Bram Moolenaar2017-04-201-1/+11
| | | | | | Problem: Using freed memory when resetting 'indentexpr' while evaluating it. (Dominique Pelle) Solution: Make a copy of 'indentexpr'.
* patch 8.0.0466: still macros that should be all-capsv8.0.0466Bram Moolenaar2017-03-161-5/+5
| | | | | Problem: There are still a few macros that should be all-caps. Solution: Make a few more macros all-caps.
* patch 8.0.0452: some macros are in lower casev8.0.0452Bram Moolenaar2017-03-121-38/+38
| | | | | Problem: Some macros are in lower case. Solution: Make a few more macros upper case.
* patch 8.0.0451: some macros are in lower casev8.0.0451Bram Moolenaar2017-03-121-10/+10
| | | | | | Problem: Some macros are in lower case. Solution: Make a few more macros upper case. Avoid lower case macros use an argument twice.
* patch 8.0.0448: some macros are in lower casev8.0.0448Bram Moolenaar2017-03-121-3/+5
| | | | | Problem: Some macros are in lower case, which can be confusing. Solution: Make a few lower case macros upper case.
* patch 8.0.0431: 'cinoptions' cannot set indent for extern blockv8.0.0431Bram Moolenaar2017-03-081-2/+66
| | | | | Problem: 'cinoptions' cannot set indent for extern block. Solution: Add the "E" flag in 'cinoptions'. (Hirohito Higashi)
* patch 8.0.0423: changing 'cinoptions' does not always workv8.0.0423Bram Moolenaar2017-03-051-0/+3
| | | | | | Problem: The effect of adding "#" to 'cinoptions' is not always removed. (David Briscoe) Solution: Reset b_ind_hash_comment. (Christian Brabandt, closes #1475)
* patch 8.0.0421: diff mode wrong when adding line at end of bufferv8.0.0421Bram Moolenaar2017-03-051-4/+12
| | | | | | Problem: Diff mode is displayed wrong when adding a line at the end of a buffer. Solution: Adjust marks in diff mode. (James McCoy, closes #1329)
* patch 8.0.0365: might free a dict item that wasn't allocatedv8.0.0365Bram Moolenaar2017-02-251-4/+4
| | | | | | Problem: Might free a dict item that wasn't allocated. Solution: Call dictitem_free(). (Nikolai Pavlov) Use this for b:changedtick.
* patch 8.0.0355: using uninitialized memory when 'isfname' is emptyv8.0.0355Bram Moolenaar2017-02-231-10/+8
| | | | | | Problem: Using uninitialized memory when 'isfname' is empty. Solution: Don't call getpwnam() without an argument. (Dominique Pelle, closes #1464)
* patch 8.0.0334: can't access b:changedtick from a dict referencev8.0.0334Bram Moolenaar2017-02-171-5/+5
| | | | | | Problem: Can't access b:changedtick from a dict reference. Solution: Make changedtick a member of the b: dict. (inspired by neovim #6112)
* patch 8.0.0293: some tests have a one or three second waitv8.0.0293Bram Moolenaar2017-02-011-1/+5
| | | | | | Problem: Some tests have a one or three second wait. Solution: Reset the 'showmode' option. Use a test time of one to disable sleep after an error or warning message.
* patch 8.0.0280: problem setting multi-byte environment var on MS-Windowsv8.0.0280Bram Moolenaar2017-02-011-3/+0
| | | | | | Problem: On MS-Windows setting an environment variable with multi-byte strings does not work well. Solution: Use wputenv when possible. (Taro Muraoka, Ken Takata)
* patch 8.0.0221: unnecessary condition on PROTOv8.0.0221Bram Moolenaar2017-01-221-1/+1
| | | | | Problem: Checking if PROTO is defined inside a function has no effect. Solution: Remove the check for PROTO. (Hirohito Higashi)
* patch 8.0.0211: cannot build without the multi-byte featurev8.0.0211Bram Moolenaar2017-01-211-7/+5
| | | | | Problem: Build fails if the multi-byte feature is disabled. Solution: Change #ifdef around ins_char_bytes.
* patch 8.0.0175: setting language on MS-Windows does not always workv8.0.0175Bram Moolenaar2017-01-121-0/+3
| | | | | | Problem: Setting language in gvim on MS-Windows does not work when libintl.dll is dynamically linked with msvcrt.dll. Solution: Use putenv() from libintl as well. (Ken Takata, closes #1082)
* patch 8.0.0148: wrong indent in C preprocessor with line continuationv8.0.0148Bram Moolenaar2017-01-071-11/+19
| | | | | | | Problem: When a C preprocessor statement has two line continuations the following line does not have the right indent. (Ken Takata) Solution: Add the indent of the previous continuation line. (Hirohito Higashi)
* patch 8.0.0092v8.0.0092Bram Moolenaar2016-11-171-0/+9
| | | | | | Problem: C indenting does not support nested namespaces that C++ 17 has. Solution: Add check that passes double colon inside a name. (Pauli, closes #1214)
* patch 8.0.0029v8.0.0029Bram Moolenaar2016-10-121-4/+1
| | | | | | Problem: Code for MS-Windows is complicated because of the exceptions for old systems. Solution: Drop support for MS-Windows older than Windows XP. (Ken Takata)
* patch 7.4.2360v7.4.2360Bram Moolenaar2016-09-101-2/+8
| | | | | Problem: Invalid memory access when formatting. (Dominique Pelle) Solution: Make sure cursor line and column are associated.
* patch 7.4.2293v7.4.2293Bram Moolenaar2016-08-291-1/+1
| | | | | Problem: Modelines in source code are inconsistant. Solution: Use the same line in most files. Add 'noet'. (Naruhiko Nishino)
* patch 7.4.2274v7.4.2274Bram Moolenaar2016-08-271-11/+27
| | | | | | Problem: Command line completion on "find **/filename" drops sub-directory. Solution: Handle this case separately. (Harm te Hennepe, closes #932, closes #939)
* patch 7.4.2222v7.4.2222Bram Moolenaar2016-08-161-1/+1
| | | | | | | Problem: Sourcing a script where a character has 0x80 as a second byte does not work. (Filipe L B Correia) Solution: Turn 0x80 into K_SPECIAL KS_SPECIAL KE_FILLER. (Christian Brabandt, closes #728) Add a test case.
* patch 7.4.2101v7.4.2101Bram Moolenaar2016-07-241-4/+4
| | | | | Problem: Looping over windows, buffers and tab pages is inconsistant. Solution: Use FOR_ALL_ macros everywhere. (Yegappan Lakshmanan)
* patch 7.4.2048v7.4.2048Bram Moolenaar2016-07-161-8/+0
| | | | | Problem: There is still code and help for unsupported systems. Solution: Remove the code and text. (Hirohito Higashi)
* patch 7.4.1991v7.4.1991Bram Moolenaar2016-07-071-1/+1
| | | | | Problem: glob() does not add a symbolic link when there are no wildcards. Solution: Remove the call to mch_getperm().
* patch 7.4.1976v7.4.1976Bram Moolenaar2016-07-011-1/+1
| | | | | Problem: Number variables are not 64 bits while they could be. Solution: Add the num64 feature. (Ken Takata)
* patch 7.4.1975v7.4.1975Bram Moolenaar2016-07-011-5/+5
| | | | | | Problem: On MS-Windows large files (> 2Gbyte) cause problems. Solution: Use "off_T" instead of "off_t". Use "stat_T" instead of "struct stat". Use 64 bit system functions if available. (Ken Takata)
* patch 7.4.1896v7.4.1896Bram Moolenaar2016-06-041-3/+9
| | | | | | Problem: Invoking mark_adjust() when adding a new line below the last line is pointless. Solution: Skip calling mark_adjust() when appending below the last line.
* patch 7.4.1780v7.4.1780Bram Moolenaar2016-04-231-1/+1
| | | | | Problem: Warnings reported by cppcheck. Solution: Fix the warnings. (Dominique Pelle)
* patch 7.4.1651v7.4.1651Bram Moolenaar2016-03-251-43/+2
| | | | | Problem: Some dead (MSDOS) code remains. Solution: Remove the unused lines. (Ken Takata)
* patch 7.4.1611v7.4.1611Bram Moolenaar2016-03-191-2/+2
| | | | | | Problem: The versplit feature makes the code uneccessary complicated. Solution: Remove FEAT_VERTSPLIT, always support vertical splits when FEAT_WINDOWS is defined.
* patch 7.4.1399v7.4.1399Bram Moolenaar2016-02-231-42/+17
| | | | | Problem: The MS-DOS code does not build. Solution: Remove the old MS-DOS code.
* patch 7.4.1375v7.4.1375Bram Moolenaar2016-02-201-2/+2
| | | | | Problem: Still some Win16 code. Solution: Remove FEAT_GUI_W16.(Hirohito Higashi)
* patch 7.4.1334v7.4.1334Bram Moolenaar2016-02-161-4/+4
| | | | | Problem: Many compiler warnings with MingW. Solution: Add type casts. (Yasuhiro Matsumoto)
* patch 7.4.1211v7.4.1211Bram Moolenaar2016-01-301-427/+279
| | | | | | Problem: Using old style function declarations. Solution: Change to new style function declarations. (script by Hirohito Higashi)
* patch 7.4.1198v7.4.1198Bram Moolenaar2016-01-291-62/+62
| | | | | | Problem: Still using __ARGS. Solution: Remove __ARGS in several files. (script by Hirohito Higashi) Also remove use of HAVE_STDARG_H.
* patch 7.4.1120v7.4.1120Bram Moolenaar2016-01-171-1/+1
| | | | | Problem: delete(x, 'rf') fails if a directory is empty. (Lcd) Solution: Ignore not finding matches in an empty directory.
* patch 7.4.1117v7.4.1117Bram Moolenaar2016-01-171-7/+9
| | | | | Problem: No longer get "." and ".." in directory list. Solution: Do not skip "." and ".." unless EW_DODOT is set.
* patch 7.4.1116v7.4.1116Bram Moolenaar2016-01-171-4/+7
| | | | | Problem: delete(x, 'rf') does not delete files starting with a dot. Solution: Also delete files starting with a dot.
* patch 7.4.1091v7.4.1091Bram Moolenaar2016-01-151-0/+5
| | | | | | | Problem: When making a change while need_wait_return is set there is a two second delay. Solution: Do not assume the ATTENTION prompt was given when need_wait_return was set already.