summaryrefslogtreecommitdiff
path: root/src/misc1.c
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-7/+7
| | | | | | | | Problem: Giving error messages is not flexible. Solution: Add semsg(). Change argument from "char_u *" to "char *", also for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes #3302) Also make emsg() accept a "char *" argument. Get rid of an enormous number of type casts.
* patch 8.1.0718: a couple compiler warningsv8.1.0718Bram Moolenaar2019-01-111-5/+7
| | | | | Problem: A couple compiler warnings. Solution: Rename shadowed variables. Add UNUSED.
* patch 8.1.0707: text property columns are not adjusted for changed indentv8.1.0707Bram Moolenaar2019-01-081-6/+11
| | | | | Problem: Text property columns are not adjusted for changed indent. Solution: Adjust text properties.
* patch 8.1.0681: text properties as not adjusted for deleted textv8.1.0681Bram Moolenaar2019-01-021-1/+1
| | | | | Problem: Text properties as not adjusted for deleted text. Solution: Adjust text properties when backspacing to delete text.
* patch 8.1.0678: text properties as not adjusted for inserted textv8.1.0678Bram Moolenaar2019-01-021-10/+24
| | | | | Problem: Text properties as not adjusted for inserted text. Solution: Adjust text properties when inserting text.
* patch 8.1.0671: cursor in the wrong column after auto-formattingv8.1.0671Bram Moolenaar2018-12-311-1/+1
| | | | | Problem: Cursor in the wrong column after auto-formatting. Solution: Check for deleting more spaces than adding. (closes #3748)
* patch 8.1.0662: needlessly searching for tilde in stringv8.1.0662Bram Moolenaar2018-12-301-1/+1
| | | | | Problem: Needlessly searching for tilde in string. Solution: Only check the first character. (James McCoy, closes #3734)
* patch 8.1.0579: cannot attach properties to textv8.1.0579Bram Moolenaar2018-12-131-9/+21
| | | | | Problem: Cannot attach properties to text. Solution: First part of adding text properties.
* patch 8.1.0574: 'commentstring' not used when adding fold marker in Cv8.1.0574Bram Moolenaar2018-12-091-7/+6
| | | | | | Problem: 'commentstring' not used when adding fold marker in C. Solution: Require white space before middle comment part. (mostly by Hirohito Higashi)
* patch 8.1.0570: 'commentstring' not used when adding fold markerv8.1.0570Bram Moolenaar2018-12-071-2/+14
| | | | | | Problem: 'commentstring' not used when adding fold marker. (Maxim Kim) Solution: Only use empty 'comments' middle when leader is empty. (Christian Brabandt, closes #3670)
* patch 8.1.0534: MS-Windows installer uses different $HOME than Vimv8.1.0534Bram Moolenaar2018-11-161-0/+2
| | | | | | Problem: MS-Windows installer uses different $HOME than Vim. Solution: Use the Vim logic also in the MS-Windows installer. (Ken Takata, closes #3564)
* patch 8.1.0466: autocmd test failsv8.1.0466Bram Moolenaar2018-10-071-1/+1
| | | | | Problem: Autocmd test fails. Solution: Do call inchar() when flushing typeahead.
* patch 8.1.0443: unnecessary static function prototypesv8.1.0443Bram Moolenaar2018-09-301-50/+1
| | | | | Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
* patch 8.1.0394: diffs are not always updated correctlyv8.1.0394Bram Moolenaar2018-09-161-1/+6
| | | | | Problem: Diffs are not always updated correctly. Solution: When using internal diff update for any changes properly.
* patch 8.1.0361: remote user not used for completionv8.1.0361Bram Moolenaar2018-09-101-18/+51
| | | | | Problem: Remote user not used for completion. (Stucki) Solution: Use $USER too. (Dominique Pelle, closes #3407)
* patch 8.1.0328: inputlist() doesn't work with a timerv8.1.0328Bram Moolenaar2018-08-261-6/+6
| | | | | | Problem: inputlist() doesn't work with a timer. (Dominique Pelle) Solution: Don't redraw when cmdline_row is zero. (Hirohito Higashi, closes #3239)
* patch 8.1.0306: plural messages are not translated properlyv8.1.0306Bram Moolenaar2018-08-211-17/+5
| | | | | Problem: Plural messages are not translated properly. Solution: Add more usage of NGETTEXT(). (Sergey Alyoshin)
* patch 8.1.0226: too many #ifdefsv8.1.0226Bram Moolenaar2018-07-291-28/+6
| | | | | | Problem: Too many #ifdefs. Solution: Graduate the +vreplace feature, it's not much code and quite a few #ifdefs.
* patch 8.1.0211: expanding a file name "~" results in $HOMEv8.1.0211Bram Moolenaar2018-07-251-1/+1
| | | | | Problem: Expanding a file name "~" results in $HOME. (Aidan Shafran) Solution: Change "~" to "./~" before expanding. (closes #3072)
* patch 8.1.0159: completion for user names does not work for a prefix.v8.1.0159Bram Moolenaar2018-07-071-1/+2
| | | | | | Problem: Completion for user names does not work if a prefix is also a full matching name. (Nazri Ramliy) Solution: Accept both full and partial matches. (Dominique Pelle)
* patch 8.1.0105: all tab stops are the samev8.1.0105Bram Moolenaar2018-06-231-7/+184
| | | | | | Problem: All tab stops are the same. Solution: Add the variable tabstop feature. (Christian Brabandt, closes #2711)
* patch 8.1.0084: user name completion does not work on MS-Windowsv8.1.0084Bram Moolenaar2018-06-191-0/+26
| | | | | Problem: User name completion does not work on MS-Windows. Solution: Use NetUserEnum() to get user names. (Yasuhiro Matsumoto)
* patch 8.0.1841: HP-UX does not have setenv()v8.0.1841Bram Moolenaar2018-05-141-1/+1
| | | | | Problem: HP-UX does not have setenv(). Solution: Use vim_setenv(). (John Marriott)
* patch 8.0.1832: cannot use :unlet for an environment variablev8.0.1832Bram Moolenaar2018-05-131-0/+11
| | | | | | Problem: Cannot use :unlet for an environment variable. Solution: Make it work. Use unsetenv() if available. (Ken Takata, closes #2855)
* patch 8.0.1783: cannot use 256 colors in a MS-Windows consolev8.0.1783Bram Moolenaar2018-05-011-1/+1
| | | | | Problem: Cannot use 256 colors in a MS-Windows console. Solution: Add 256 color support. (Nobuhiro Takasaki, closes #2821)