Bram Moolenaar
51e14387f1
patch 8.1.1393: unnecessary type casts
...
Problem: Unnecessary type casts.
Solution: Remove type casts from alloc() and lalloc() calls. (Mike Williams)
2019-05-25 20:21:28 +02:00
Bram Moolenaar
8f46e4c4bd
patch 8.1.1390: search stats are off when using count or offset
...
Problem: Search stats are off when using count or offset.
Solution: Recompute the stats when needed. (Masato Nishihata, closes #4410 )
2019-05-24 22:08:15 +02:00
Bram Moolenaar
18a4ba29ae
patch 8.1.1386: unessesary type casts for lalloc()
...
Problem: Unessesary type casts for lalloc().
Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
2019-05-24 19:39:03 +02:00
Bram Moolenaar
d33a764123
patch 8.1.1383: warning for size_t/int mixup
...
Problem: Warning for size_t/int mixup.
Solution: Change type. (Mike Williams)
2019-05-24 17:56:14 +02:00
Bram Moolenaar
e2ad826f43
patch 8.1.1376: warnings for size_t/int mixups
...
Problem: Warnings for size_t/int mixups.
Solution: Change types, add type casts. (Mike Williams)
2019-05-24 13:22:22 +02:00
Bram Moolenaar
984f031fb0
patch 8.1.1375: without "TS" in 'shortmess' get a hit-enter prompt often
...
Problem: Without "TS" in 'shortmess' get a hit-enter prompt often.
Solution: Always truncate the search message. Also avoid putting it in the
message history. (closes #4413 )
2019-05-24 13:11:47 +02:00
Bram Moolenaar
99499b1c05
patch 8.1.1371: cannot recover from a swap file
...
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 )
2019-05-23 21:35:48 +02:00
Bram Moolenaar
dc6855af97
patch 8.1.1350: "W" for wrapping not shown when more than 99 matches
...
Problem: "W" for wrapping not shown when more than 99 matches.
Solution: Adjust check for length. (Masato Nishihata, closes #4388 )
2019-05-18 19:26:29 +02:00
Bram Moolenaar
b6cb26ffe1
patch 8.1.1289: may not have enough space to add "W" to search stats
...
Problem: May not have enough space to add "W" to search stats.
Solution: Reserve a bit more space. (Christian Brabandt)
2019-05-07 21:34:37 +02:00
Bram Moolenaar
9ce3fa828d
patch 8.1.1288: search stats don't show for mapped command
...
Problem: Search stats don't show for mapped command.
Solution: Remove SEARCH_PEEK from searchit flags. Add a test. (Christian
Brabandt)
2019-05-07 21:29:11 +02:00
Bram Moolenaar
c7a10b35de
patch 8.1.1283: delaying half a second after the top-bot message
...
Problem: Delaying half a second after the top-bot message.
Solution: Instead of the delay add "W" to the search count.
2019-05-06 21:37:18 +02:00
Bram Moolenaar
b3de6c4a76
patch 8.1.1271: compiler warnings for use of STRNCPY()
...
Problem: Compiler warnings for use of STRNCPY(). (John Marriott)
Solution: Use mch_memmove() instead of STRNCPY().
2019-05-05 13:02:28 +02:00
Bram Moolenaar
9dfa313919
patch 8.1.1270: cannot see current match position
...
Problem: Cannot see current match position.
Solution: Show "3/44" when using the "n" command and "S" is not in
'shortmess'. (Christian Brabandt, closes #4317 )
2019-05-04 21:08:40 +02:00
Bram Moolenaar
d9eefe3155
patch 8.1.1124: insert completion flags are mixed up
...
Problem: Insert completion flags are mixed up.
Solution: Clean up flags use of ins_compl_add() and cp_flags.
2019-04-06 14:22:21 +02:00
Bram Moolenaar
7591bb39d5
patch 8.1.1076: file for Insert mode is much too big
...
Problem: File for Insert mode is much too big.
Solution: Split off the code for Insert completion. (Yegappan Lakshmanan,
closes #4044 )
2019-03-30 13:53:47 +01:00
Bram Moolenaar
975880b6e6
patch 8.1.0991: cannot build with a mix of features
...
Problem: Cannot build with FEAT_EVAL defined and FEAT_SEARCH_EXTRA
undefined, and with FEAT_DIFF defined and FEAT_EVAL undefined.
Solution: Add a couple of #ifdefs. (closes #4067 )
2019-03-03 14:42:11 +01:00
Bram Moolenaar
55d3bdbbe2
patch 8.1.0971: failure for selecting quoted text object moves cursor
...
Problem: Failure for selecting quoted text object moves cursor.
Solution: Restore the Visual selection on failure. (Christian Brabandt,
closes #4024 )
2019-02-22 15:04:17 +01:00
Bram Moolenaar
4f97475d32
patch 8.1.0941: macros for MS-Windows are inconsistent
...
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 )
2019-02-17 17:44:42 +01:00
Bram Moolenaar
14184a3133
patch 8.1.0932: Farsi support is outdated and unused
...
Problem: Farsi support is outdated and unused.
Solution: Delete the Farsi support.
2019-02-16 15:10:30 +01:00
Bram Moolenaar
b763361161
patch 8.1.0886: compiler warning for NULL pointer and condition always true
...
Problem: Compiler warning for adding to NULL pointer and a condition that
is always true.
Solution: Check for NULL pointer before adding. Remove useless "if".
(Friedirch, closes #3913 )
2019-02-10 21:48:25 +01:00
Bram Moolenaar
375e339007
patch 8.1.0864: cannot have a local value for 'scrolloff' and 'sidescrolloff'
...
Problem: Cannot have a local value for 'scrolloff' and 'sidescrolloff'.
(Gary Holloway)
Solution: Make 'scrolloff' and 'sidescrolloff' global-local. (mostly by
Aron Widforss, closes #3539 )
2019-01-31 18:26:10 +01:00
Bram Moolenaar
29ddebef40
patch 8.1.0826: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
2019-01-26 17:28:26 +01:00
Bram Moolenaar
264b74fa54
patch 8.1.0810: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate FEAT_MBYTE, part 4.
2019-01-24 17:18:42 +01:00
Bram Moolenaar
113e10721f
patch 8.1.0785: depending on the configuration some functions are unused
...
Problem: Depending on the configuration some functions are unused.
Solution: Add more #ifdefs, remove unused functions. (Dominique Pelle,
closes #3822 )
2019-01-20 15:30:40 +01:00
Bram Moolenaar
32526b3c18
patch 8.1.0779: argument for message functions is inconsistent
...
Problem: Argument for message functions is inconsistent.
Solution: Make first argument to msg() "char *".
2019-01-19 17:43:09 +01:00
Bram Moolenaar
f9e3e09fdc
patch 8.1.0743: giving error messages is not flexible
...
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.
2019-01-13 23:38:42 +01:00
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
ed8bc78d23
patch 8.1.0556: saving/restoring search patterns share saved last_idx
...
Problem: Saving/restoring search patterns share saved last_idx.
Solution: Use a separate saved last_idx for saving search patterns for
functions and incremental search.
2018-12-01 21:08:21 +01:00
Bram Moolenaar
2fb8f684d8
patch 8.1.0555: crash when last search pat is set but not last substitute pat
...
Problem: Crash when last search pat is set but not last substitute pat.
Solution: Do not mix up last search pattern and last subtitute pattern.
(closes #3647 )
2018-12-01 13:14:45 +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
c4568ab37e
patch 8.1.0528: various typos in comments
...
Problem: Various typos in comments.
Solution: Fix the typos.
2018-11-16 16:21:05 +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
b476cb7d8d
patch 8.1.0290: "cit" on an empty HTML tag changes the whole tag
...
Problem: "cit" on an empty HTML tag changes the whole tag.
Solution: Only adjust the area in Visual mode. (Andy Massimino,
closes #3332 )
2018-08-16 21:37:50 +02:00
Bram Moolenaar
8516071124
patch 8.1.0083: "is" and "as" have trouble with quoted punctuation
...
Problem: "is" and "as" have trouble with quoted punctuation.
Solution: Check for punctuation before a quote. (Jason Franklin)
2018-06-19 18:27:41 +02:00
Bram Moolenaar
bdb657924d
patch 8.1.0018: using "gn" may select wrong text when wrapping
...
Problem: Using "gn" may select wrong text when wrapping.
Solution: Avoid wrapping when searching forward. (Christian Brabandt)
2018-05-22 17:50:42 +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
1c17ffa461
patch 8.0.1753: various warnings from a static analyser
...
Problem: Various warnings from a static analyser
Solution: Add type casts, remove unneeded conditions. (Christian Brabandt,
closes #2770 )
2018-04-24 15:19:04 +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
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
8846ac5aed
patch 8.0.1487: test 14 fails
...
Problem: Test 14 fails.
Solution: Fix of-by-one error.
2018-02-09 19:24:01 +01:00
Bram Moolenaar
82846a00ac
patch 8.0.1486: accessing invalid memory with "it"
...
Problem: Accessing invalid memory with "it". (Dominique Pelle)
Solution: Avoid going over the end of the line. (Christian Brabandt,
closes #2532 )
2018-02-09 18:09:54 +01:00
Bram Moolenaar
9d32276b52
patch 8.0.1483: searchpair() might return an invalid value on timeout
...
Problem: Searchpair() might return an invalid value on timeout.
Solution: When the second search times out, do not accept a match from the
first search. (Daniel Hahler, closes #2552 )
2018-02-09 16:04:25 +01:00
Bram Moolenaar
bc0e9adae9
patch 8.0.1479: insert mode completion state is confusing
...
Problem: Insert mode completion state is confusing.
Solution: Move ctrl_x_mode into edit.c. Add CTRL_X_NORMAL for zero.
2018-02-09 12:13:34 +01:00
Bram Moolenaar
a338adcf22
patch 8.0.1449: slow redrawing with DirectX
...
Problem: Slow redrawing with DirectX.
Solution: Avoid calling gui_mch_flush() unnecessarily, especially when
updating the cursor. (Ken Takata, closes #2560 )
2018-01-31 20:51:47 +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
f8c53d3d26
patch 8.0.1291: C indent wrong when * immediately follows comment
...
Problem: C indent wrong when * immediately follows comment. (John Bowler)
Solution: Do not see "/*" after "*" as a comment start. (closes #2321 )
2017-11-12 15:36:38 +01:00
Bram Moolenaar
48570488f1
patch 8.0.1239: cannot use a lambda for the skip argument to searchpair()
...
Problem: Cannot use a lambda for the skip argument to searchpair().
Solution: Evaluate a partial, funcref and lambda. (LemonBoy, closes #1454 ,
closes #2265 )
2017-10-30 21:48:41 +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
22ab547dc2
patch 8.0.1148: gN doesn't work on last match with 'wrapscan' off
...
Problem: "gN" doesn't work on last match with 'wrapscan' off. (fcpg)
Solution: Adjust for searching backward. (Christian Brabandt)
2017-09-26 12:28:45 +02:00
Bram Moolenaar
0263146b5d
patch 8.0.1136: W_WIDTH() is always the same
...
Problem: W_WIDTH() is always the same.
Solution: Expand the macro.
2017-09-22 15:20:32 +02:00