summaryrefslogtreecommitdiff
path: root/src/ex_getln.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.0559: clearing a struct is verbosev8.2.0559Bram Moolenaar2020-04-121-6/+6
| | | | | Problem: Clearing a struct is verbose. Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
* patch 8.2.0502: Vim9: some code is not testedv8.2.0502Bram Moolenaar2020-04-021-1/+1
| | | | | Problem: Vim9: some code is not tested. Solution: Add more tests. Fix uncovered problems.
* patch 8.2.0413: buffer menu does not handle special buffers properlyv8.2.0413Bram Moolenaar2020-03-191-0/+2
| | | | | | | | Problem: Buffer menu does not handle special buffers properly. Solution: Keep a dictionary with buffer names to reliably keep track of entries. Also trigger BufFilePre and BufFilePost for command-line and terminal buffers when the name changes.
* patch 8.2.0399: various memory leaksv8.2.0399Bram Moolenaar2020-03-181-0/+1
| | | | | Problem: Various memory leaks. Solution: Avoid the leaks. (Ozaki Kiichi, closes #5803)
* patch 8.2.0295: highlighting for :s wrong when using different separatorv8.2.0295Bram Moolenaar2020-02-211-8/+14
| | | | | | Problem: Highlighting for :s wrong when using different separator. Solution: Use separat argument for search direction and separator. (Rob Pilling, closes #5665)
* patch 8.2.0004: get E685 and E931 if buffer reload is interruptedv8.2.0004Bram Moolenaar2019-12-141-1/+1
| | | | | Problem: Get E685 and E931 if buffer reload is interrupted. Solution: Do not abort deleting a dummy buffer. (closes #5361)
* patch 8.1.2385: opening cmdline window with feedkeys() does not workv8.1.2385Bram Moolenaar2019-12-041-1/+2
| | | | | | Problem: Opening cmdline window with feedkeys() does not work. (Yegappan Lakshmanan) Solution: Recognize K_CMDWIN also when ex_normal_busy is set.
* patch 8.1.2379: using old C style commentsv8.1.2379Bram Moolenaar2019-12-011-331/+332
| | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate.
* patch 8.1.2350: other text for CTRL-V in Insert mode with modifyOtherKeysv8.1.2350Bram Moolenaar2019-11-261-10/+23
| | | | | | | Problem: Other text for CTRL-V in Insert mode with modifyOtherKeys. Solution: Convert the Escape sequence back to key as if modifyOtherKeys is not set, and use CTRL-SHIFT-V to get the Escape sequence itself. (closes #5254)
* patch 8.1.2346: CTRL-R CTRL-R doesn't work with modifyOtherKeysv8.1.2346Bram Moolenaar2019-11-261-0/+2
| | | | | | Problem: CTRL-R CTRL-R doesn't work with modifyOtherKeys. Solution: Allow key codes when fetching argument for CTRL-R. (closes #5266) Also fix CTRL-G in Insert mode.
* patch 8.1.2338: using Visual mark sith :s gives E20 if not setv8.1.2338Bram Moolenaar2019-11-231-8/+13
| | | | | Problem: Using Visual mark sith :s gives E20 if not set. Solution: Ignore errors when handling 'incsearch'. (closes #3837)
* patch 8.1.2331: the option.c file is still very bigv8.1.2331Bram Moolenaar2019-11-211-0/+77
| | | | | | Problem: The option.c file is still very big. Solution: Move a few functions to where they fit better. (Yegappan Lakshmanan, closes #4895)
* patch 8.1.2225: the "last used" info of a buffer is under usedv8.1.2225Bram Moolenaar2019-10-271-6/+9
| | | | | | 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.2222: accessing invalid memoryv8.1.2222Bram Moolenaar2019-10-261-0/+2
| | | | | Problem: Accessing invalid memory. (Dominique Pelle) Solution: Reset highlight_match every time. (closes #5125)
* patch 8.1.2173: searchit() has too many argumentsv8.1.2173Bram Moolenaar2019-10-181-4/+8
| | | | | Problem: Searchit() has too many arguments. Solution: Move optional arguments to a struct. Add the "wrapped" argument.
* patch 8.1.2171: mouse support not always availablev8.1.2171Bram Moolenaar2019-10-171-12/+3
| | | | | | 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.2120: some MB_ macros are more complicated than necessaryv8.1.2120Bram Moolenaar2019-10-061-1/+1
| | | | | | Problem: Some MB_ macros are more complicated than necessary. (Dominique Pelle) Solution: Simplify the macros. Expand inline.
* patch 8.1.2108: cannot close the cmdline window from CmdWinEnterv8.1.2108Bram Moolenaar2019-10-011-5/+7
| | | | | Problem: Cannot close the cmdline window from CmdWinEnter. (George Brown) Solution: Reset cmdwin_result earlier. (Christian Brabandt, closes #4980)
* patch 8.1.2064: MS-Windows: compiler warnings for unused argumentsv8.1.2064Bram Moolenaar2019-09-211-1/+1
| | | | | Problem: MS-Windows: compiler warnings for unused arguments. Solution: Add UNUSED. (Yegappan Lakshmanan, closes #4963)
* patch 8.1.2062: the mouse code is spread outv8.1.2062Bram Moolenaar2019-09-211-8/+0
| | | | | | Problem: The mouse code is spread out. Solution: Move all the mouse code to mouse.c. (Yegappan Lakshmanan, closes #4959)
* patch 8.1.2044: no easy way to process postponed workv8.1.2044Bram Moolenaar2019-09-151-0/+3
| | | | | Problem: No easy way to process postponed work. (Paul Jolly) Solution: Add the SafeState autocommand event.
* patch 8.1.2017: cannot execute commands after closing the cmdline windowv8.1.2017Bram Moolenaar2019-09-091-28/+18
| | | | | Problem: Cannot execute commands after closing the cmdline window. Solution: Also trigger BufEnter and WinEnter. (closes #4762)
* patch 8.1.1981: the evalfunc.c file is too bigv8.1.1981Bram Moolenaar2019-09-041-11/+46
| | | | | | Problem: The evalfunc.c file is too big. Solution: Move undo functions to undo.c. Move cmdline functions to ex_getln.c. Move some container functions to list.c.
* patch 8.1.1957: more code can be moved to evalvars.cv8.1.1957Bram Moolenaar2019-09-011-0/+108
| | | | | | Problem: More code can be moved to evalvars.c. Solution: Move code to where it fits better. (Yegappan Lakshmanan, closes #4883)
* patch 8.1.1901: the +insert_expand feature is not always availablev8.1.1901Bram Moolenaar2019-08-211-2/+0
| | | | | Problem: The +insert_expand feature is not always available. Solution: Graduate the +insert_expand feature.
* patch 8.1.1887: the +cmdline_compl feature is not in the tiny versionv8.1.1887Bram Moolenaar2019-08-181-2/+0
| | | | | Problem: The +cmdline_compl feature is not in the tiny version. Solution: Graduate the +cmdline_compl feature.
* patch 8.1.1886: command line expansion code is spread outv8.1.1886Bram Moolenaar2019-08-181-2027/+25
| | | | | Problem: Command line expansion code is spread out. Solution: Move the code to cmdexpand.c. (Yegappan Lakshmanan, closes #4831)
* patch 8.1.1823: command line history code is spread outv8.1.1823Bram Moolenaar2019-08-061-703/+32
| | | | | | Problem: Command line history code is spread out. Solution: Put the code in a new file. (Yegappan Lakshmanan, closes #4779) Also graduate the +cmdline_hist feature.
* patch 8.1.1791: 'completeslash' also applies to globpath()v8.1.1791Bram Moolenaar2019-08-021-2/+2
| | | | | | Problem: 'completeslash' also applies to globpath(). Solution: Add the WILD_IGNORE_COMPLETESLASH flag. (test by Yasuhiro Matsumoto, closes #4760)
* patch 8.1.1769: 'shellslash' is also used for completionv8.1.1769Bram Moolenaar2019-07-281-0/+20
| | | | | Problem: 'shellslash' is also used for completion. Solution: Add the 'completeslash' option. (Yasuhiro Matsumoto, closes #3612)
* patch 8.1.1728: wrong place for command line history viminfo supportv8.1.1728Bram Moolenaar2019-07-211-472/+17
| | | | | Problem: Wrong place for command line history viminfo support. Solution: Move it to viminfo.c.
* patch 8.1.1704: C-R C-W does not work after C-G when using 'incsearch'v8.1.1704Bram Moolenaar2019-07-161-0/+1
| | | | | Problem: C-R C-W does not work after C-G when using 'incsearch'. Solution: Put cursor at end of the match. (Yasuhiro Matsumoto, closes #4664)
* patch 8.1.1667: flags for Ex commands may clash with other symbolsv8.1.1667Bram Moolenaar2019-07-121-1/+1
| | | | | Problem: Flags for Ex commands may clash with other symbols. Solution: Prepend with EX_.
* patch 8.1.1632: build with EXITFREE but without +arabic failsv8.1.1632Bram Moolenaar2019-07-041-1/+1
| | | | | Problem: Build with EXITFREE but without +arabic fails. Solution: Rename the function and adjust #ifdefs. (closes #4613)
* patch 8.1.1588: in :let-heredoc line continuation is recognizedv8.1.1588Bram Moolenaar2019-06-251-5/+8
| | | | | Problem: In :let-heredoc line continuation is recognized. Solution: Do not consume line continuation. (Ozaki Kiichi, closes #4580)
* patch 8.1.1577: command line redrawn for +arabic without Arabic charactersv8.1.1577Bram Moolenaar2019-06-211-2/+36
| | | | | | | Problem: Command line redrawn for +arabic without Arabic characters. (Dominique Pelle) Solution: Check if there actually are any Arabic characters. Do redraw after displaying incsearch. (closes #4569)
* patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar2019-05-281-6/+5
| | | | | | 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.
* patch 8.1.1393: unnecessary type castsv8.1.1393Bram Moolenaar2019-05-251-3/+2
| | | | | Problem: Unnecessary type casts. Solution: Remove type casts from alloc() and lalloc() calls. (Mike Williams)
* patch 8.1.1386: unessesary type casts for lalloc()v8.1.1386Bram Moolenaar2019-05-241-5/+5
| | | | | Problem: Unessesary type casts for lalloc(). Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
* patch 8.1.1384: using "int" for alloc() often results in compiler warningsv8.1.1384Bram Moolenaar2019-05-241-7/+7
| | | | | | 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.1355: obvious mistakes are accepted as valid expressionsv8.1.1355Bram Moolenaar2019-05-191-2/+2
| | | | | | Problem: Obvious mistakes are accepted as valid expressions. Solution: Be more strict about parsing numbers. (Yasuhiro Matsumoto, closes #3981)
* patch 8.1.1306: Borland support is outdated and doesn't workv8.1.1306Bram Moolenaar2019-05-091-11/+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.1210: support for user commands is spread outv8.1.1210Bram Moolenaar2019-04-271-9/+7
| | | | | | | Problem: Support for user commands is spread out. No good reason to make user commands optional. Solution: Move user command support to usercmd.c. Always enable the user_commands feature.
* patch 8.1.1148: CTRL-L with 'incsearch' does not pick up char under cursorv8.1.1148Bram Moolenaar2019-04-111-22/+18
| | | | | | | Problem: CTRL-L with 'incsearch' does not pick up char under cursor. (Smylers) Solution: Do not compare the position with the cursor position. (Hirohito Higashi, closes #3620)
* patch 8.1.1086: too many curly bracesv8.1.1086Bram Moolenaar2019-03-301-6/+3
| | | | | | Problem: Too many curly braces. Solution: Remove curly braces where they are not needed. (Hirohito Higashi, closes #3982)
* patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar2019-02-171-3/+3
| | | | | | | 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.0932: Farsi support is outdated and unusedv8.1.0932Bram Moolenaar2019-02-161-96/+26
| | | | | Problem: Farsi support is outdated and unused. Solution: Delete the Farsi support.
* patch 8.1.0806: too many #ifdefsv8.1.0806Bram Moolenaar2019-01-241-2/+1
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 2.
* patch 8.1.0805: too many #ifdefsv8.1.0805Bram Moolenaar2019-01-241-75/+11
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 1.
* patch 8.1.0795: cannot build without popup menuv8.1.0795Bram Moolenaar2019-01-221-0/+2
| | | | | Problem: Cannot build without popup menu. Solution: Add #ifdef