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
Bram Moolenaar
fafcf0dd59
patch 8.0.1206: no autocmd for entering or leaving the command line
...
Problem: No autocmd for entering or leaving the command line.
Solution: Add CmdlineEnter and CmdlineLeave.
2017-10-19 18:35:51 +02:00
Bram Moolenaar
e0de17d84e
patch 8.0.1143: macros always expand to the same thing
...
Problem: Macros always expand to the same thing.
Solution: Remove W_VSEP_WIDTH() and W_STATUS_HEIGHT().
2017-09-24 16:24:34 +02:00
Bram Moolenaar
4033c55eca
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
...
Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always
enabled and only adds 7% to the binary size of the tiny build.
Solution: Graduate FEAT_WINDOWS.
2017-09-16 20:54:51 +02:00
Bram Moolenaar
5c6dbcb03f
patch 8.0.1026: GTK on-the-spot input has problems
...
Problem: GTK on-the-spot input has problems. (Gerd Wachsmuth)
Solution: Support over-the-spot. (Yukihiro Nakadaira, Ketn Takata, closes
#1215 )
2017-08-30 22:00:20 +02:00
Bram Moolenaar
cae92dc3d5
patch 8.0.0878: no completion for :mapclear
...
Problem: No completion for :mapclear.
Solution: Add completion (Nobuhiro Takasaki et al. closes #1943 )
2017-08-06 15:22:15 +02:00
Bram Moolenaar
6a77d2667e
patch 8.0.0720: unfinished mapping not displayed when running timer
...
Problem: Unfinished mapping not displayed when running timer.
Solution: Also use the extra_char while waiting for a mapping and digraph.
(closes #1844 )
2017-07-16 15:24:01 +02:00
Bram Moolenaar
a92522fbf3
patch 8.0.0714: when a timer causes a command line redraw " goes missing
...
Problem: When a timer causes a command line redraw the " that is displayed
for CTRL-R goes missing.
Solution: Remember an extra character to display.
2017-07-15 15:21:38 +02:00
Bram Moolenaar
5a15b6aa0a
patch 8.0.0706: crash when cancelling the cmdline window in Ex mode
...
Problem: Crash when cancelling the cmdline window in Ex mode. (James McCoy)
Solution: Do not set cmdbuff to NULL, make it empty.
2017-07-11 15:11:57 +02:00
Bram Moolenaar
da5116da45
patch 8.0.0692: CTRL-G with 'incsearch' and ? goes in the wrong direction
...
Problem: Using CTRL-G with 'incsearch' and ? goes in the wrong direction.
(Ramel Eshed)
Solution: Adjust search_start. (Christian Brabandt)
2017-07-01 23:11:17 +02:00
Bram Moolenaar
a693d0584b
patch 8.0.0689: ~ character not escaped when extending search pattern
...
Problem: The ~ character is not escaped when adding to the search pattern
with CTRL-L. (Ramel Eshed)
Solution: Escape the character. (Christian Brabandt)
2017-06-29 22:23:06 +02:00
Bram Moolenaar
1814183b86
patch 8.0.0677: setting 'filetype' may switch buffers
...
Problem: Setting 'filetype' internally may cause the current buffer and
window to change unexpectedly.
Solution: Set curbuf_lock. (closes #1734 )
2017-06-25 21:17:25 +02:00
Bram Moolenaar
fbd0b0af68
patch 8.0.0643: when a pattern search is slow Vim becomes unusable
...
Problem: When 'hlsearch' is set and matching with the last search pattern
is very slow, Vim becomes unusable. Cannot quit search by
pressing CTRL-C.
Solution: When the search times out set a flag and don't try again. Check
for timeout and CTRL-C in NFA loop that adds states.
2017-06-17 18:44:21 +02:00
Bram Moolenaar
29ae377ea7
patch 8.0.0592: if a job writes to a buffer screen is not updated
...
Problem: If a job writes to a buffer and the user is typing a command, the
screen isn't updated. When a message is displayed the changed
buffer may cause it to be cleared. (Ramel Eshed)
Solution: Update the screen and then the command line if the screen didn't
scroll. Avoid inserting screen lines, as it clears any message.
Update the status line when the buffer changed.
2017-04-30 19:39:39 +02:00
Bram Moolenaar
3bab93998d
patch 8.0.0546: swap file exists briefly when opening the command window
...
Problem: Swap file exists briefly when opening the command window.
Solution: Set the noswapfile command modifier before splitting the window.
(James McCoy, closes #1620 )
2017-04-07 15:42:25 +02:00
Bram Moolenaar
ef8eb08978
patch 8.0.0528: highlight wrong text when 'wim' includes "longest"
...
Problem: When 'wildmenu' is set and 'wildmode' has "longest" then the first
file name is highlighted, even though the text shows the longest
match.
Solution: Do not highlight the first match. (LemonBoy, closes #1602 )
2017-03-30 22:04:55 +02:00
Bram Moolenaar
f2405ed232
patch 8.0.0468: after aborting an Ex command g< does not work
...
Problem: After aborting an Ex command g< does not work. (Marcin
Szamotulski)
Solution: Postpone clearing scrollback messages to until the command line
has been entered. Also fix that the screen isn't redrawn if after
g< the command line is cancelled.
2017-03-16 19:58:25 +01:00
Bram Moolenaar
8820b48654
patch 8.0.0466: still macros that should be all-caps
...
Problem: There are still a few macros that should be all-caps.
Solution: Make a few more macros all-caps.
2017-03-16 17:23:31 +01:00