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
Bram Moolenaar
200ea8ffaa
patch 8.0.1428: compiler warning on 64 bit MS-Windows system
...
Problem: Compiler warning on 64 bit MS-Windows system.
Solution: Change type from "int" to "size_t". (Mike Williams)
2018-01-02 15:37:46 +01:00
Bram Moolenaar
ee219b0e9f
patch 8.0.1399: warnings and errors when building tiny version
...
Problem: Warnings and errors when building tiny version. (Tony Mechelynck)
Solution: Add #ifdefs.
2017-12-17 14:55:01 +01:00
Bram Moolenaar
a1d5c154db
patch 8.0.1396: memory leak when CTRL-G in search command line fails
...
Problem: Memory leak when CTRL-G in search command line fails.
Solution: Move restore_last_search_pattern to after "if".
2017-12-16 19:05:22 +01:00
Bram Moolenaar
6621605eb9
patch 8.0.1393: too much highlighting with 'hlsearch' and 'incsearch' set
...
Problem: Too much highlighting with 'hlsearch' and 'incsearch' set.
Solution: Do not highlight matches when the pattern matches everything.
2017-12-16 16:33:44 +01:00
Bram Moolenaar
c5aa55db7e
patch 8.0.1356: using simalt in a GUIEnter autocommand inserts characters
...
Problem: Using simalt in a GUIEnter autocommand inserts strange characters.
(Chih-Long Chang)
Solution: Ignore K_NOP in Insert mode. (closes #2379 )
2017-11-28 20:47:40 +01:00
Bram Moolenaar
819edbe078
patch 8.0.1338: USE_IM_CONTROL is confusing and incomplete
...
Problem: USE_IM_CONTROL is confusing and incomplete.
Solution: Just use FEAT_MBYTE. Call 'imactivatefunc' also without GUI.
2017-11-25 17:14:33 +01:00
Bram Moolenaar
51b0f3701e
patch 8.0.1309: cannot use 'balloonexpr' in a terminal
...
Problem: Cannot use 'balloonexpr' in a terminal.
Solution: Add 'balloonevalterm' and add code to handle mouse movements in a
terminal. Initial implementation for Unix with GUI.
2017-11-18 18:52:04 +01:00
Bram Moolenaar
d048009717
patch 8.0.1304: CTRL-G/CTRL-T don't work with incsearch and empty pattern
...
Problem: CTRL-G/CTRL-T don't work with incsearch and empty pattern.
Solution: Use the last search pattern. (Christian Brabandt, closes #2292 )
2017-11-16 22:20:39 +01:00
Bram Moolenaar
f8f8b2eadb
patch 8.0.1250: 'hlsearch' highlighting not removed after incsearch
...
Problem: 'hlsearch' highlighting not removed after incsearch (lacygoill)
Solution: Redraw all windows. Start search at the end of the match. Improve
how CTRL-G works with incremental search. Add tests. (Christian
Brabandt, Hirohito Higashi, haya14busa, closes #2267 )
2017-11-02 19:08:48 +01:00
Bram Moolenaar
2e51d9a097
patch 8.0.1238: incremental search only shows one match
...
Problem: Incremental search only shows one match.
Solution: When 'incsearch' and and 'hlsearch' are both set highlight all
matches. (haya14busa, closes #2198 )
2017-10-29 16:40:30 +01:00
Bram Moolenaar
2f40d129bf
patch 8.0.1215: newer gcc warns for implicit fallthrough
...
Problem: Newer gcc warns for implicit fallthrough.
Solution: Consistently use a FALLTHROUGH comment. (Christian Brabandt)
2017-10-24 21:49:36 +02:00
Bram Moolenaar
f8e8c0643b
patch 8.0.1210: CTRL-G and CTRL-T are ignored with typeahead
...
Problem: When typing a search pattern CTRL-G and CTRL-T are ignored when
there is typeahead.
Solution: Don't pass SEARCH_PEEK and don't call char_avail(). (haya14busa,
closes #2233 )
2017-10-22 14:44:17 +02:00