Bram Moolenaar
5d24a2257e
patch 8.1.0629: "gn" selects the wrong text with a multi-line match
...
Problem: "gn" selects the wrong text with a multi-line match.
Solution: Get the end position from searchit() directly. (closes #3695 )
2018-12-23 19:10:09 +01:00
Bram Moolenaar
98aefe7c32
patch 8.1.0579: cannot attach properties to text
...
Problem: Cannot attach properties to text.
Solution: First part of adding text properties.
2018-12-13 22:20:09 +01:00
Bram Moolenaar
01a060da74
patch 8.1.0552: saved last search pattern may not be restored
...
Problem: Saved last search pattern may not be restored.
Solution: Call restore_last_search_pattern(). Add a check for balancing
saving and restoring the last search pattern.
2018-11-30 21:57:55 +01:00
Bram Moolenaar
4e303c8ba8
patch 8.1.0543: Coverity warns for leaking memory and using wrong struct
...
Problem: Coverity warns for leaking memory and using wrong struct.
Solution: Free pointer when allocation fails. Change "boff" to "loff".
(closes #3634 )
2018-11-24 14:27:44 +01:00
Bram Moolenaar
1c29943416
patch 8.1.0499: :2vimgrep causes an ml_get error
...
Problem: :2vimgrep causes an ml_get error
Solution: Pass tomatch pointer instead of value. (Yegappan Lakshmanan)
2018-10-28 14:36:09 +01:00
Bram Moolenaar
6dff58f15c
patch 8.1.0443: unnecessary static function prototypes
...
Problem: Unnecessary static function prototypes.
Solution: Remove unnecessary prototypes.
2018-09-30 21:43:26 +02:00
Bram Moolenaar
d3dc062160
patch 8.1.0441: build failure without command line history
...
Problem: Build failure without command line history.
Solution: Move cmdline_init() outside of #ifdef.
2018-09-30 17:45:30 +02:00
Bram Moolenaar
438d176e35
patch 8.1.0439: recursive use of getcmdline() still not protected
...
Problem: Recursive use of getcmdline() still not protected.
Solution: Instead of saving the command buffer when making a call which may
cause recursiveness, save the buffer when actually being called
recursively.
2018-09-30 17:11:48 +02:00
Bram Moolenaar
ee91c33570
patch 8.1.0436: can get the text of inputsecret() with getcmdline()
...
Problem: Can get the text of inputsecret() with getcmdline(). (Tommy Allen)
Solution: Don't return the text.
2018-09-25 22:27:35 +02:00
Bram Moolenaar
31cbadf74b
patch 8.1.0433: mapping can obtain text from inputsecret()
...
Problem: Mapping can obtain text from inputsecret(). (Tommy Allen)
Solution: Disallow CTRL-R = and CTRL-\ e when using inputsecret().
2018-09-25 20:48:57 +02:00
Bram Moolenaar
65985ac998
patch 8.1.0399: 'hlsearch' highlight remains in other window
...
Problem: 'hlsearch' highlight remains in other window after cancelling
command.
Solution: Redraw all windows. Also remove unnecessary delays. (closes #3437 )
2018-09-16 17:08:04 +02:00
Bram Moolenaar
50eb16c3b2
patch 8.1.0392: error while typing :/foo/s// with 'incsearch' enabled
...
Problem: Error while typing :/foo/s// with 'incsearch' enabled.
Solution: Do not give search errors when highlighting matches.
2018-09-15 15:42:40 +02:00
Bram Moolenaar
f29c1c6aa3
patch 8.1.0362: cannot get the script line number when executing a function
...
Problem: Cannot get the script line number when executing a function.
Solution: Store the line number besides the script ID. (Ozaki Kiichi,
closes #3362 ) Also display the line number with ":verbose set".
2018-09-10 21:05:02 +02:00
Bram Moolenaar
99f043a57d
patch 8.1.0356: using :s with 'incsearch' prevents CTRL-R CTRL-W
...
Problem: Using :s with 'incsearch' prevents CTRL-R CTRL-W. (Boris Staletic)
Solution: When past the pattern put cursor back in the start position.
(closes #3413 )
2018-09-09 15:54:14 +02:00
Bram Moolenaar
198cb66d65
patch 8.1.0351: 'incsearch' for :/foo/s//<Esc> changes last search pattern
...
Problem: 'incsearch' for :/foo/s//<Esc> changes last search pattern.
Solution: Save the last search pattern earlier.
2018-09-06 21:44:17 +02:00
Bram Moolenaar
f13daa46da
patch 8.1.0339: wrong highlight when 'incsearch' set and cancelling :s
...
Problem: Wrong highlight when 'incsearch' set and cancelling :s.
Solution: Reset search line range. (Hirohito Higashi, Masamichi Abe)
2018-08-31 22:09:54 +02:00
Bram Moolenaar
4edfe2d2a2
patch 8.1.0321: 'incsearch' regression: /\v highlights everything
...
Problem: 'incsearch' regression: /\v highlights everything.
Solution: Put back the empty_pattern() check.
2018-08-23 20:55:45 +02:00
Bram Moolenaar
8b0d5ce881
patch 8.1.0320: too much 'incsearch' highlight for pat matching everything
...
Problem: Too much 'incsearch' highlight for pattern matching everything.
Solution: Add the skiplen to the command and remove the line range.
(Christian Brabandt) Check for empty pattern earlier.
2018-08-22 23:05:44 +02:00
Bram Moolenaar
111bbd61e9
patch 8.1.0296: command parsing for 'incsearch' is a bit ugly
...
Problem: Command parsing for 'incsearch' is a bit ugly.
Solution: Return when there is no pattern. Put common checks together.
2018-08-18 21:23:05 +02:00
Bram Moolenaar
264cf5cfaf
patch 8.1.0295: no 'incsearch' highlighting for :vimgrep and similar
...
Problem: No 'incsearch' highlighting for :vimgrep and similar commands.
Solution: Parse the :vimgrep command and similar ones to locate the search
pattern. (Hirohito Higashi, closes #3344 )
2018-08-18 21:05:31 +02:00
Bram Moolenaar
81f56536b1
patch 8.1.0291: 'incsearch' highlighting not used for :sort
...
Problem: 'incsearch' highlighting not used for :sort.
Solution: Handle pattern in :sort command.
2018-08-18 16:19:42 +02:00
Bram Moolenaar
37b15568c2
patch 8.1.0287: MAX is not defined everywhere
...
Problem: MAX is not defined everywhere.
Solution: Define MAX where needed.
2018-08-14 22:08:25 +02:00
Bram Moolenaar
167ae42685
patch 8.1.0286: 'incsearch' does not apply to :smagic and :snomagic
...
Problem: 'incsearch' does not apply to :smagic and :snomagic.
Solution: Add support. (Hirohito Higashi)
2018-08-14 21:32:21 +02:00
Bram Moolenaar
d7cc163570
patch 8.1.0285: compiler warning for conversion
...
Problem: Compiler warning for conversion.
Solution: Add a type cast. (Mike Williams)
2018-08-14 20:18:26 +02:00
Bram Moolenaar
2f6a346a4c
patch 8.1.0284: 'cursorline' highlighting wrong with 'incsearch'
...
Problem: 'cursorline' highlighting wrong with 'incsearch'.
Solution: Move the cursor back if the match is outside the range.
2018-08-14 18:16:52 +02:00
Bram Moolenaar
33c4dbb74b
patch 8.1.0282: 'incsearch' does not work with command modifiers
...
Problem: 'incsearch' does not work with command modifiers.
Solution: Skip command modifiers.
2018-08-14 16:06:16 +02:00
Bram Moolenaar
def7b1dc61
patch 8.1.0280: 'incsearch' highlighting does not work for ":g!/"
...
Problem: 'incsearch' highlighting does not work for ":g!/".
Solution: Skip the exclamation mark. (Hirohito Higashi)
2018-08-13 22:54:35 +02:00
Bram Moolenaar
2b926fcb3c
patch 8.1.0279: 'incsearch' highlighting does not skip white space
...
Problem: 'incsearch' highlighting does not skip white space.
Solution: Skip white space after the command. (issue #3321 )
2018-08-13 11:07:57 +02:00
Bram Moolenaar
60d0871000
patch 8.1.0278: 'incsearch' highlighting does not accept reverse range
...
Problem: 'incsearch' highlighting does not accept reverse range.
Solution: Swap the range when needed. (issue #3321 )
2018-08-12 21:53:15 +02:00
Bram Moolenaar
c7f08b7ee1
patch 8.1.0277: 'incsearch' highlighting wrong in a few cases
...
Problem: 'incsearch' highlighting wrong in a few cases.
Solution: Fix using last search pattern. Restore highlighting when changing
command. (issue #3321 )
2018-08-12 17:39:14 +02:00
Bram Moolenaar
976b847f43
patch 8.1.0275: 'incsearch' with :s doesn't start at cursor line
...
Problem: 'incsearch' with :s doesn't start at cursor line.
Solution: Set cursor before parsing address. (closes #3318 )
Also accept a match at the start of the first line.
2018-08-12 15:49:47 +02:00
Bram Moolenaar
21f990e1c2
patch 8.1.0274: 'incsearch' triggers on ":source"
...
Problem: 'incsearch' triggers on ":source".
Solution: Check for the whole command name.
2018-08-11 19:20:49 +02:00
Bram Moolenaar
ef73a28401
patch 8.1.0273: invalid memory access when using 'incsearch'
...
Problem: Invalid memory access when using 'incsearch'.
Solution: Reset "patlen" when using previous search pattern.
2018-08-11 19:02:22 +02:00
Bram Moolenaar
b0acacd767
patch 8.1.0271: 'incsearch' doesn't work for :s, :g or :v
...
Problem: 'incsearch' doesn't work for :s, :g or :v.
Solution: Also use 'incsearch' for other commands that use a pattern.
2018-08-11 16:40:43 +02:00
Bram Moolenaar
0ee81cb638
patch 8.1.0265: the getcmdline() function is way too big
...
Problem: The getcmdline() function is way too big.
Solution: Factor out the incremental search highlighting.
2018-08-10 22:07:32 +02:00
Bram Moolenaar
ded27a1feb
patch 8.1.0233: "safe" argument of call_vim_function() is always FALSE
...
Problem: "safe" argument of call_vim_function() is always FALSE.
Solution: Remove the argument.
2018-08-01 19:06:03 +02:00
Bram Moolenaar
6ab9e429da
patch 8.1.0223: completing shell command finds sub-directories in $PATH
...
Problem: Completing shell command finds sub-directories in $PATH.
Solution: Remove EW_DIR when completing an item in $PATH. (Jason Franklin)
2018-07-28 19:20:13 +02:00
Bram Moolenaar
ffa9684150
patch 8.1.0053: first argument of 'completefunc' has inconsistent type
...
Problem: The first argument given to 'completefunc' can be Number or
String, depending on the value.
Solution: Avoid guessing the type of an argument, use typval_T in the
callers of call_vim_function(). (Ozaki Kiichi, closes #2993 )
2018-06-12 22:05:14 +02:00
Bram Moolenaar
62fe66f251
patch 8.1.0017: shell command completion has duplicates
...
Problem: Shell command completion has duplicates. (Yegappan Lakshmanan)
Solution: Use a hash table to avoid duplicates. (Ozaki Kiichi, closes #539 ,
closes #2733 )
2018-05-22 16:58:47 +02:00
Bram Moolenaar
5e3423d192
patch 8.0.1837: one character cmdline abbreviation not triggered after '<,'>
...
Problem: One character cmdline abbreviation not triggered after '<,'>.
Solution: Skip over the special range. (Christian Brabandt, closes #2320 )
2018-05-13 18:36:27 +02:00
Bram Moolenaar
e2c8d83926
patch 8.0.1787: cannot insert the whole cursor line
...
Problem: Cannot insert the whole cursor line.
Solution: Make CTRL-R CTRL-L work. (Andy Massimino, closes #2857 )
2018-05-01 19:24:03 +02:00
Bram Moolenaar
9b25af3620
patch 8.0.1769: repeated saving and restoring viewstate for 'incsearch'
...
Problem: Repeated saving and restoring viewstate for 'incsearch'.
Solution: Use a structure.
2018-04-28 13:56:09 +02:00
Bram Moolenaar
451fc7b954
patch 8.0.1768: SET_NO_HLSEARCH() used in a wrong way
...
Problem: SET_NO_HLSEARCH() used in a wrong way.
Solution: Make it a function. (suggested by Dominique Pelle,
closes #2850 )
2018-04-27 22:53:07 +02:00
Bram Moolenaar
9d34d90210
patch 8.0.1767: with 'incsearch' text may jump up and down
...
Problem: With 'incsearch' text may jump up and down. ()
Solution: Besides w_botline also save and restore w_empty_rows.
(closes # 2530)
2018-04-27 22:18:12 +02:00
Bram Moolenaar
72532d354e
patch 8.0.1672: error during completion causes command to be cancelled
...
Problem: Error during completion causes command to be cancelled.
Solution: Reset did_emsg before waiting for another character. (Tom M.)
2018-04-07 19:09:09 +02:00
Bram Moolenaar
cd43effeca
patch 8.0.1649: no completion for argument list commands
...
Problem: No completion for argument list commands.
Solution: Add arglist completion. (Yegappan Lakshmanan, closes #2706 )
2018-03-29 15:55:38 +02:00
Bram Moolenaar
f2bd8ef2b4
patch 8.0.1564: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate the +autocmd feature. Takes away 450 #ifdefs and
increases code size of tiny Vim by only 40 Kbyte.
2018-03-04 18:08:14 +01:00
Bram Moolenaar
71a43c0137
patch 8.0.1502: in out-of-memory situation character is not restored
...
Problem: In out-of-memory situation character is not restored. (Coverity)
Solution: Restore the character in all situations.
2018-02-11 15:20:20 +01:00
Bram Moolenaar
d23a823669
patch 8.0.1496: clearing a pointer takes two lines
...
Problem: Clearing a pointer takes two lines.
Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi,
closes #2629 )
2018-02-10 18:45:26 +01:00
Bram Moolenaar
153b704e20
patch 8.0.1445: cannot act on edits in the command line
...
Problem: Cannot act on edits in the command line.
Solution: Add the CmdlineChanged autocommand event. (xtal8, closes #2603 ,
closes #2524 )
2018-01-31 15:48:32 +01:00