Jan Edmund Lazo
c1ef241390
vim-patch:8.0.1073: may get an endless loop if 'statusline' changes a highlight
...
Problem: May get an endless loop if 'statusline' changes a highlight.
Solution: Do not let evaluating 'statusline' trigger a redraw.
ba2929b6af
2019-02-03 08:32:51 -05:00
Marco Hinz
28f87c505d
Merge #9539 "options: make 'listchars' and 'fillchars' local to window"
2019-01-28 00:45:59 +01:00
Björn Linse
30bd1c1e85
terminal: handle size when switching buffers in window
2019-01-27 12:07:06 +01:00
Marco Hinz
2418aa3a4a
linter: fix issues
2019-01-26 14:45:48 +01:00
Marco Hinz
352811fe5f
options: make 'fillchars'/'listchars' local to window
...
Using 'listchars' is a nice way to highlight tabs that were included by accident
for buffers that set 'expandtab'.
But maybe one does not want this for buffers that set 'noexpandtab', so now one
can use:
autocmd FileType go let &l:listchars .= ',tab: '
2019-01-26 14:45:47 +01:00
Justin M. Keyes
4cba75dab0
clang/"null pointer dereference": close_buffer
...
False positive: win_valid_any_tab() already checks `win != NULL`.
2019-01-13 19:57:52 +01:00
Björn Linse
d5d8deec06
bufhl: simplify redraw logic
...
using changed_lines_buf was technically incorrect, as the buffer wasn't
modififed.
2019-01-09 10:30:09 +01:00
Björn Linse
b4a04fd80c
api: make nvim_buf_set_virtual_text use correct namespace counter
2018-12-07 17:31:05 +01:00
Björn Linse
01dbf0951b
api: implement object namespaces
...
Namespaces is a lightweight concept that should be used to group
objects for purposes of bulk operations and introspection. This is
initially used for highlights and virtual text in buffers, and is
planned to also be used for extended marks. There is no plan use them
for privileges or isolation, neither to introduce nanespace-level
options.
2018-11-24 11:01:37 +01:00
Björn Linse
c40f992e10
api: simplify nvim_buf_get_offset function
2018-11-01 22:00:40 +01:00
Reto Schnyder
bddcbbb571
signs: Add "numhl" argument #9113
...
close #9113
ref #9040
2018-10-13 19:39:56 +02:00
Jan Edmund Lazo
cf7e351c24
lint
2018-09-29 22:11:50 -04:00
Jan Edmund Lazo
458a6f58b6
globals: arg_had_last is bool
2018-09-29 16:53:55 -04:00
Justin M. Keyes
efbc33cbbc
vim-patch:8.1.0310: file info msg with 'F' in 'shortmess'
...
Problem: File info message not always suppressed with 'F' in 'shortmess'.
(Asheq Imran)
Solution: Save and restore msg_silent. (Christian Brabandt, closes vim/vim#3221 )
2f0f871159
ref #8840
ref #9027
2018-09-21 22:35:09 +02:00
Jan Edmund Lazo
6a329b0548
vim-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)
2f40d129bf
2018-09-20 06:59:04 -04:00
Björn Linse
45f53b370b
buffer: add support for virtual text annotations
2018-09-17 10:41:29 +02:00
Jan Edmund Lazo
2be853d486
lint
2018-09-06 20:26:30 -04:00
Jan Edmund Lazo
cfb2828897
window: refactor boolean variables in win_close()
...
free_buf (param) and help_window (variable) are bool.
2018-09-06 20:24:29 -04:00
Jan Edmund Lazo
dc15dcffad
vim-patch:8.0.0782: using freed memory in quickfix code
...
Problem: Using freed memory in quickfix code. (Dominique Pelle)
Solution: Handle a help window differently. (Yegappan Lakshmanan)
d28cc3f55d
2018-09-06 06:15:35 -04:00
Jan Edmund Lazo
58ad7fc578
ops: refactor get_spec_reg()
...
Return value is bool.
errmsg (param) is bool in here and in getaltfname().
allocated (param) is bool.
2018-08-16 23:05:33 -04:00
Jan Edmund Lazo
a0938e068f
vim-patch:8.0.1633: a TextChanged autocmd triggers when it is defined
...
Problem: A TextChanged autocmd triggers when it is defined after creating a
buffer.
Solution: Set b_last_changedtick when opening a buffer. (Hirohito Highlight,
closes vim/vim#2742 )
8c64a36e40
2018-08-15 01:27:30 -04:00
Jan Edmund Lazo
3d77ca39c7
lint
2018-08-11 18:57:54 -04:00
Jan Edmund Lazo
594536a1e7
vim-patch:8.0.1361: some users don't want to diff with hidden buffers
...
Problem: Some users don't want to diff with hidden buffers.
Solution: Add the "hiddenoff" item to 'diffopt'. (Alisue, closes vim/vim#2394 )
97ce419201
2018-08-11 15:06:07 -04:00
ZviRackover
cd3b2e4b6b
lint: clean-up after parent commit
2018-08-06 20:48:07 +03: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
Daniel Hahler
3aca372ac8
vim-patch:8.1.0240: g:actual_curbuf set in wrong scope ( #8818 )
...
Problem: g:actual_curbuf set in wrong scope. (Daniel Hahler)
Solution: Prepend the "g:" name space. (closes vim/vim#3279 )
3cb4448b8a
2018-08-06 03:37:15 +02: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
Marco Hinz
01570f1ff3
terminal: handle &confirm and :confirm on unloading ( #8726 )
...
Show a proper confirmation dialog when trying to unload a terminal buffer while
the confirm option is set or when :confirm is used.
Fixes https://github.com/neovim/neovim/issues/4651
2018-07-12 14:57:20 +02:00
ZviRackover
627cc1b3d8
test: build_stl_str_hl ( #8703 )
...
Improve coverage of `build_stl_str_hl`.
Minor removal of dead code in the tested function.
2018-07-10 20:46:40 +02:00
Björn Linse
bf2460e2f9
Merge pull request #7551 from bfredl/setl_bufwin
...
fix copying setl options for buffer currently displayed in another window
2018-06-22 09:53:46 +02:00
ZyX
eaf2a25f12
*: Replace b_changedtick with new always-inline functions
...
Ref #8474
2018-06-22 00:44:31 +03:00
Björn Linse
8917e0c301
buffer: fix copying setl options for buffer currently displayed in another window
...
vim-patch:8.0.1836: buffer-local window options may not be recent
Problem: Buffer-local window options may not be recent if the buffer is
still open in another window.
Solution: Copy the options from the window instead of the outdated window
options. (Bjorn Linse, closes vim/vim#2336 )
25782a7ff4
2018-06-21 22:41:15 +02:00
Jan Edmund Lazo
10083ec4cc
vim-patch:8.0.0648: possible use of NULL pointer
...
Problem: Possible use of NULL pointer if buflist_new() returns NULL.
(Coverity)
Solution: Check for NULL pointer in set_bufref().
fadacf01d0
2018-06-21 12:50:31 -04: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
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
Justin M. Keyes
f85cbea725
Merge #7917 'API: buffer updates'
2018-06-08 10:13:04 +02:00
KillTheMule
e7451f8a91
Some renamings and doc changes
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
92759ef34f
buffer: Fix PVS/V560: condition was checked three lines above
2018-04-09 10:29:31 +03:00
ZyX
840027c7f5
buffer: Fix PVS/V547: base is never set to octal
2018-04-09 10:29:30 +03:00
ZyX
58a5699a44
buffer: PVS/V557: Refactor maketitle()
2018-04-09 10:29:28 +03:00
ZyX
0d7daaad98
charset,*: Refactor transstr()
2018-04-09 01:39:33 +03:00
ZyX
414ef75ee6
buffer: Beautify code a bit
2018-04-09 01:35:23 +03:00
Justin M. Keyes
0ecf7e3a2d
refactor/rename: path_to_absolute()
2018-03-24 14:17:40 +01:00
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