Jan Edmund Lazo
593c0bd77f
vim-patch:8.0.1216: tabline is not always updated for :file command
...
Problem: Tabline is not always updated for :file command. (Norio Takagi)
Solution: Set redraw_tabline. (Hirohito Higashi)
6ce6504808
2018-08-06 21:56:38 -04:00
ZviRackover
10b6afd652
Remove all occurences of the mb_ptr2char macro
...
First step towards implemening issue #7401 .
The same can be done for all deprecated mb_ functions in follow-up
patches.
2018-08-06 20:48:07 +03:00
Jan Edmund Lazo
d2c1d9c466
ex_cmds: add const to helptags_one() variables
2018-08-01 23:21:17 -04:00
Jan Edmund Lazo
144e85b7b9
ex_cmds: add const to fix_help_buffer() variables
2018-08-01 23:02:52 -04:00
Jan Edmund Lazo
deae2e8434
ex_cmds: refactor utf8 variables to TriState
...
- utf8 in helptags_one()
- this_utf in fix_help_buffer()
2018-08-01 15:28:49 -04:00
Jan Edmund Lazo
84b8612987
vim-patch:8.0.1512: warning for possibly using NULL pointer
...
Problem: Warning for possibly using NULL pointer. (Coverity)
Solution: Skip using the pointer if it's NULL.
e4db7aedab
2018-07-23 08:34:25 -04:00
Björn Linse
696e24f311
highlight: extract low-level highlight logic from syntax, ui
2018-07-21 10:37:44 +02:00
Jan Edmund Lazo
392817c2da
vim-patch:8.0.0630: it is not easy to work on lines without a match ( #8734 )
...
Problem: The :global command does not work recursively, which makes it
difficult to execute a command on a line where one pattern matches
and another does not match. (Miles Cranmer)
Solution: Allow for recursion if it is for only one line. (closes vim/vim#1760 )
f84b122a99
2018-07-13 21:14:46 +02:00
Jan Edmund Lazo
bfe029a11d
vim-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 vim/vim#1734 )
1814183b86
2018-06-26 10:21:39 -04:00
Jan Edmund Lazo
b79523681d
vim-patch:8.0.0707: freeing wrong memory with certain autocommands
...
Problem: Freeing wrong memory when manipulating buffers in autocommands.
(James McCoy)
Solution: Also set the w_s pointer if w_buffer was NULL.
f1d13478e3
2018-06-25 11:41:45 -04:00
ZyX
eaf2a25f12
*: Replace b_changedtick with new always-inline functions
...
Ref #8474
2018-06-22 00:44:31 +03:00
Jan Edmund Lazo
bf61885cb4
vim-patch:8.0.0621: :stag does not respect 'switchbuf'
...
Problem: The ":stag" command does not respect 'switchbuf'.
Solution: Check 'switchbuf' for tag commands that may open a new window.
(Ingo Karkat, closes vim/vim#1681 ) Define macros for the return values
of getfile().
8ad80dea08
2018-06-21 12:50:30 -04:00
Jan Edmund Lazo
a10938ae31
vim-patch:8.0.0537: illegal memory access with :z and large count ( #8592 )
...
Problem: Illegal memory access with :z and large count.
Solution: Check for number overflow, using long instead of int. (Dominique
Pelle, closes vim/vim#1612 )
fa0ad0bb0b
2018-06-19 20:35:37 +02:00
Jan Edmund Lazo
3c7ea8d619
vim-patch:8.0.0451: some macros are in lower case
...
Problem: Some macros are in lower case.
Solution: Make a few more macros upper case. Avoid lower case macros use an
argument twice.
91acfffc1e
2018-06-12 02:00:50 -04:00
Jan Edmund Lazo
bbb88607c9
vim-patch:8.0.0466: still macros that should be all-caps ( #8510 )
...
Problem: There are still a few macros that should be all-caps.
Solution: Make a few more macros all-caps.
8820b48654
2018-06-10 12:24:00 +02:00
KillTheMule
65e7f6f0b9
Rename some more, fixe borked renaming
2018-05-23 22:07:27 +02:00
KillTheMule
491efc89d2
Lint
2018-05-23 22:07:27 +02:00
KillTheMule
e7451f8a91
Some renamings and doc changes
2018-05-23 22:07:27 +02:00
KillTheMule
2106bada5b
Enable -Wconversion
2018-05-23 22:07:27 +02:00
KillTheMule
6bdcbef2f5
The grand renaming
2018-05-23 22:07:27 +02:00
KillTheMule
37b8e95fd6
Lint
2018-05-23 22:07:27 +02:00
Peter Hodge
edcc73e766
API: Implement buffer updates
...
Originally written by @phodge in
https://github.com/neovim/neovim/pull/5269 .
2018-05-23 22:07:27 +02:00
ZyX
4bab9d34e6
*: Fix clint errors
2018-04-22 20:31:40 +03:00
ZyX
6196738a3b
ex_cmds: Fix PVS/V547: expression was already checked in outer if()
2018-04-15 20:08:32 +03:00
ZyX
103be37f42
ex_cmds: Fix PVS/V557: possible array overrun in :ascii
...
Some calculation show that with the current setup there will not be enough bytes
occupied for that, barring the case of malicious translation. Still should be
possible to have array overrun with specially crafted translation.
2018-04-15 20:07:07 +03:00
ZyX
aa5008c1f0
ex_cmds: Simplify do_ascii
...
Specifically apply constants like enc_utf8 (which are constants *now*) and
simplify conditions after that. Also some style changes.
2018-04-15 19:01:58 +03:00
ZyX
db7f80302b
ex_cmds: Remove #ifdef USE_GUI
...
`ag` shows that this identifier (`USE_GUI`) is found in exactly one place (zero
after this commit). So I assume macros is never defined.
2018-04-15 18:52:37 +03:00
KunMing Xie
5ce8158a5d
vim-patch:8.0.0316: :help z? does not work ( #8134 )
...
Problem: ":help z?" does not work. (Pavol Juhas)
Solution: Remove exception for z?.
dad7309dd2
2018-03-14 10:30:24 +01:00
KunMing Xie
5ec0a6d13f
vim-patch:8.0.0513: fix getting name of cleared highlight group ( #8103 )
...
Problem: Getting name of cleared highlight group is wrong. (Matt Wozniski)
Solution: Only skip over cleared names for completion. (closes vim/vim#1592 )
Also fix that a cleared group causes duplicate completions.
c96272e30e
2018-03-08 19:49:21 +01:00
Nimit Bhardwaj
e9134421ab
vim-patch-8.0.0649 and vim-patch-8.0.0650: autocmd open help 2 times
2018-02-17 00:02:16 +05:30
Justin M. Keyes
7da4d1561b
lint
2018-02-12 01:32:52 +01:00
Justin M. Keyes
2929dbf223
vim-patch:8.0.0858: can exit while a terminal is still running a job
...
Problem: Can exit while a terminal is still running a job.
Solution: Consider a buffer with a running job like a changed file.
eb44a68b42
2018-02-11 22:40:12 +01:00
Björn Linse
2d99b81ab5
shell: use msg_outtrans_len_attr for :!cmd
...
fixes #7830 and #7788
2018-02-05 22:57:43 +01:00
George Zhao
06994e0e21
Fix warning about conversion on mingw64
2018-01-18 21:30:03 +08:00
KunMing Xie
26251d6d06
vim-patch:8.0.0374: invalid memory access when using :sc in Ex mode ( #7849 )
...
Problem: Invalid memory access when using :sc in Ex mode. (Dominique Pelle)
Solution: Avoid the column being negative. Also fix a hang in Ex mode.
ba748c8a84
2018-01-15 23:54:56 +01:00
Justin M. Keyes
ddcfb49262
Merge #7755
2017-12-28 22:48:49 +01:00
ckelsel
eb95b88156
vim-patch:8.0.0315: :help :[range] does not work
...
Problem: ":help :[range]" does not work. (Tony Mechelynck)
Solution: Translate to insert a backslash.
a76f59d817
2017-12-21 18:55:56 +08:00
ZyX
ac4bbf55f6
*: Hide list implementation in other files as well
2017-12-10 22:04:43 +03:00
Hannu Hartikainen
c391401648
helptags: fix double-free ( #7600 )
...
closes #7599
Helped-by: oni-link <knil.ino@gmail.com >
Freeing `dirname` was first introduced by a code refactoring from `ex_helptags()` to `do_helptags()` (`vim-patch:7.4.1551`)(#4648 ) and later removed by `vim-patch:7.4.1562`(#4660 ).
Only problem with that is, that the patches were not applied in order so the fixing patch was declared `N/A`.
So `do_helptags()` should have never freed `dirname`.
2017-11-20 21:20:01 +01:00
KillTheMule
04b3c32772
'inccommand': Fix matches for zero-width ( #7487 )
...
closes #7485
2017-11-05 17:11:44 +01:00
Justin M. Keyes
60b1e8ad12
Merge #7315 "'inccommand': multiline, other fixes"
...
closes #5589
closes #5590
closes #5598
closes #5608
2017-10-31 01:11:35 +01:00
KillTheMule
7b4baad674
Remove superflous parameter from show_sub
2017-10-29 18:11:32 +01:00
KillTheMule
0c358725b1
Fix highlighting conflict
2017-10-29 18:11:32 +01:00
KillTheMule
353c81af1e
Clear highlight when there's no match
2017-10-29 18:11:32 +01:00
KillTheMule
d8bb1dabb6
Fix the last line in the preview buffer
...
It would always show an empty line at the end that didn't belong.
2017-10-29 18:11:32 +01:00
KillTheMule
3e5ecd9538
Remove pat/sub from show_sub
...
They were only used to not show the preview window when typing "s/" or
"s//" only, in which case the previous pattern would be reused. Now the
window is shown in that case.
2017-10-29 18:11:32 +01:00
KillTheMule
35b867d786
Lint
2017-10-29 18:10:46 +01:00
KillTheMule
8d929f558c
Inccommand: Multiline substitutions, highlighting, multibyte.
...
Make inccomand work with multiline patterns and substitutions. Also care
for proper highlighting and multibyte characters.
2017-10-29 18:10:46 +01:00
Justin M. Keyes
2736f0cb56
ex_cmds.c:do_sub(): macroize duplicate code
2017-09-13 00:00:42 +02:00
KillTheMule
6d0f87a0bd
'inccommand': fix 'gdefault' lockup #7261
...
closes #7244
ref #7249
2017-09-12 22:44:11 +02:00