Andrej Zieger
fb9abd7d99
vim-patch:8.1.0614: placing signs can be complicated
...
Problem: Placing signs can be complicated.
Solution: Add functions for defining and placing signs. Introduce a group
name to avoid different plugins using the same signs. (Yegappan
Lakshmanan, closes vim/vim#3652 )
162b71479b
2019-05-26 19:32:31 +02:00
Björn Linse
aabda31d54
Merge pull request #9547 from bfredl/rpc_multiline_err
...
messages: use proper multiline errors for rpcrequest and API wrappers
2019-05-26 18:11:49 +02:00
Björn Linse
8ed54bbec3
messages: use proper multiline error message for rpcrequest and API wrappers
2019-05-26 15:42:16 +02:00
Jan Edmund Lazo
f60af8694b
vim-patch:8.1.0307: there is no good way to get the window layout
...
Problem: There is no good way to get the window layout.
Solution: Add the winlayout() function. (Yegappan Lakshmanan)
0f6b4f06de
2019-05-26 07:27:50 -04:00
Jan Edmund Lazo
08aa9b0023
vim-patch:8.1.0211: expanding a file name "~" results in $HOME
...
Problem: Expanding a file name "~" results in $HOME. (Aidan Shafran)
Solution: Change "~" to "./~" before expanding. (closes vim/vim#3072 )
00136dc321
2019-05-25 20:36:01 -04:00
Justin M. Keyes
ae846b41df
vim-patch:8.0.1496: VIM_CLEAR()
...
Problem: Clearing a pointer takes two lines.
Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi,
closes #2629 )
vim-patch:8.0.1481
2019-05-25 10:07:05 +02:00
Jan Edmund Lazo
7c979f972e
vim-patch:8.0.1519: getchangelist() does not use argument as bufname()
...
Problem: Getchangelist() does not use argument as bufname().
Solution: Use get_buf_tv(). (Yegappan Lakshmanan, closes vim/vim#2641 )
341a64c9ca
2019-05-20 19:07:15 -04:00
Jan Edmund Lazo
783aa6b507
vim-patch:8.0.1514: getting the list of changes is not easy
...
Problem: Getting the list of changes is not easy.
Solution: Add the getchangelist() function. (Yegappan Lakshmanan,
closes vim/vim#2634 )
07ad816525
2019-05-20 13:33:59 -04:00
Jan Edmund Lazo
854073f1db
vim-patch:8.1.0901: index in getjumplist() may be wrong
...
Problem: Index in getjumplist() may be wrong. (Epheien)
Solution: Call cleanup_jumplist() earlier. (Yegappan Lakshmanan,
closes vim/vim#3941 )
57ee2b6e0b
2019-05-19 23:15:47 -04:00
Jan Edmund Lazo
4aad4c0533
vim-patch:8.0.1513: the jumplist is not always properly cleaned up
...
Problem: The jumplist is not always properly cleaned up.
Solution: Call fname2fnum() before cleanup_jumplist(). (Yegappan Lakshmanan)
4867974137
2019-05-19 23:15:47 -04:00
Jan Edmund Lazo
d6d9596b38
vim-patch:8.0.1498: getjumplist() returns duplicate entries
...
Problem: Getjumplist() returns duplicate entries. (lacygoill)
Solution: Call cleanup_jumplist(). (Yegappan Lakshmanan)
a7e18d237f
2019-05-19 23:15:47 -04:00
Jan Edmund Lazo
41828a7302
vim-patch:8.0.1497: getting the jump list requires parsing the output of :jumps
...
Problem: Getting the jump list requires parsing the output of :jumps.
Solution: Add getjumplist(). (Yegappan Lakshmanan, closes vim/vim#2609 )
4f50588ba3
2019-05-19 23:15:47 -04:00
Francisco Giordano
766cc60337
eval.c: add has("osx") for apple
2019-05-19 17:03:58 -03:00
Francisco Giordano
8b3c0b87ff
vim-patch:8.1.1352: undofile() reports wrong name
...
Problem: Undofile() reports wrong name. (Francisco Giordano)
Solution: Clean up the name before changing path separators. (closes vim/vim#4392 ,
closes vim/vim#4394 )
e9ebc9a91c
2019-05-19 15:31:23 -03:00
Justin M. Keyes
91547a80b6
lint
2019-05-06 10:02:15 +02:00
Justin M. Keyes
fe299a82a6
PVS/V547: Expression is always true
...
Since 67bac681ea
(see msg_multiline_attr()) msg_clr_eos() is always
called.
2019-05-06 10:02:00 +02:00
Marco Hinz
daa82cbf69
vim-patch:8.0.1831: sometimes the quickfix title is incorrectly prefixed with ':'
...
Problem: Sometimes the quickfix title is incorrectly prefixed with ':'.
Solution: Prepend the colon in another way. (Yegappan Lakshmanan)
8b62e31003
2019-05-05 13:46:20 +02:00
Jan Edmund Lazo
4b287119fe
vim-patch:8.0.1708: mkdir with 'p' flag fails on existing directory
...
Problem: Mkdir with 'p' flag fails on existing directory, which is
different from the mkdir shell command.
Solution: Don't fail if the directory already exists. (James McCoy,
closes vim/vim#2775 )
78a16b0f2a
2019-05-03 00:55:56 -04:00
Justin M. Keyes
e22c475156
Merge #9951 'vim-patch:8.1.0519: save/restore tag stack'
2019-04-30 23:41:34 +02:00
Justin M. Keyes
8cf7daaaa8
verb_msg: remove char_u
2019-04-29 21:22:55 +02:00
Justin M. Keyes
04f0bc97b7
vim-patch:8.1.0401: can't get swap name of another buffer
...
Problem: Can't get swap name of another buffer.
Solution: Add swapname(). (Ozaki Kiichi, closes vim/vim#3441 )
110bd60985
2019-04-29 21:19:45 +02:00
Justin M. Keyes
24b7462b3c
vim-patch:8.1.0313: information about a swap file is unavailable
...
Problem: Information about a swap file is unavailable.
Solution: Add swapinfo(). (Enzo Ferber)
00f123a565
2019-04-29 19:55:42 +02:00
Jan Edmund Lazo
a0d723db55
vim-patch:8.0.1563: getwinposx() timeout #9955
...
Problem: Timeout of getwinposx() can be too short. (lilydjwg)
Solution: Add getwinpos(). (closes vim/vim#2689 )
3f54fd319f
2019-04-29 11:53:44 +02:00
rolag
fb6ff2a593
lint
2019-04-28 19:58:13 +01:00
rolag
924dd6f14a
vim-patch:8.1.0519: cannot save and restore the tag stack
...
Problem: Cannot save and restore the tag stack.
Solution: Add gettagstack() and settagstack(). (Yegappan Lakshmanan,
closes vim/vim#3604 )
f49cc60aa8
2019-04-28 11:37:19 +01:00
Jan Edmund Lazo
6a9a729674
vim-patch:8.1.1209: clever compiler warns for buffer being too small
...
Problem: Clever compiler warns for buffer being too small.
Solution: Make the buffer bigger (even though it's not really needed).
5431589d25
2019-04-27 00:13:46 -04:00
Jan Edmund Lazo
66d86d8bdb
vim-patch:8.1.1207: some compilers give warning messages
...
Problem: Some compilers give warning messages.
Solution: Initialize variables, change printf() argument. (Christian
Brabandt, closes vim/vim#4305 )
1f3601e92e
2019-04-27 00:00:51 -04:00
Jan Edmund Lazo
9d77a07686
vim-patch:8.0.1510: cannot assert beep #9938
...
Problem: Cannot test if a command causes a beep.
Solution: Add assert_beeps().
b48e96f61c
2019-04-25 14:31:33 +02:00
Jan Edmund Lazo
e52f6f21a1
vim-patch:8.0.1093: various small quickfix issues
...
Problem: Various small quickfix issues.
Solution: Remove ":" prefix from title set by a user. Add the qf_id2nr().
function. Add a couple more tests. Update documentation.
(Yegappan Lakshmanan)
b4d5fbabc9
2019-04-14 19:09:19 -04:00
Marco Hinz
21b108fe44
vim-patch:8.1.1140: not easy to find out what neighbors a window has ( #9873 )
...
Problem: Not easy to find out what neighbors a window has.
Solution: Add more arguments to winnr(). (Yegappan Lakshmanan)
46ad288b9b
2019-04-10 10:16:32 +02:00
Justin M. Keyes
9d085c75ff
vim-patch:8.0.0702: error in a timer can make Vim unusable #9826
...
Problem: An error in a timer can make Vim unusable.
Solution: Don't set the error flag or exception from a timer. Stop a timer
if it causes an error 3 out of 3 times. Discard an exception
caused inside a timer.
c577d813b7
closes #9826
2019-04-10 00:50:51 +02:00
Jan Edmund Lazo
0baf8583ef
vim-patch:8.0.0709: libvterm cannot use vsnprintf()
...
Problem: Libvterm cannot use vsnprintf(), it does not exist in C90.
Solution: Use vim_vsnprintf() instead.
8327d1df17
2019-04-04 19:10:31 -04:00
Marco Hinz
d608e9c950
vim-patch:8.1.0494: functions do not check for a window ID in other tabs
...
Problem: Functions do not check for a window ID in other tabs.
Solution: Also find the window ID in other than the current tab.
babfcf54ae
Fixes https://github.com/neovim/neovim/issues/9843
2019-04-04 20:24:39 +02:00
Marco Hinz
5510361a8c
vim-patch:8.1.0493: argv() and argc() only work on the current argument list
...
Problem: argv() and argc() only work on the current argument list.
Solution: Add a window ID argument. (Yegappan Lakshmanan, closes vim/vim#832 )
e6e3989c1b
2019-04-04 20:24:39 +02:00
Marco Hinz
6b75d9f865
vim-patch:8.1.0218: cannot add matches to another window
...
Problem: Cannot add matches to another window. (Qiming Zhao)
Solution: Add the "window" argument to matchadd() and matchaddpos().
(closes vim/vim#3260 )
95e51470f1
2019-04-04 20:24:39 +02:00
Jan Edmund Lazo
f772117b55
eval: diff_hlID() and hlID() return same id
2019-03-31 09:01:40 -04:00
Justin M. Keyes
a8783012e4
Merge #9815 'vim-patch:8.1.1068: complete_info()'
2019-03-30 21:30:16 +01:00
Shougo Matsushita
2d63b6d2c1
vim-patch:8.1.1068: cannot get all the information about current completion
...
Problem: Cannot get all the information about current completion.
Solution: Add complete_info(). (Shougo, Hirohito Higashi, closes vim/vim#4106 )
fd133323d4
2019-03-30 22:24:35 +09:00
Jan Edmund Lazo
b5582d1b32
vim-patch:8.1.0177: defining function in sandbox is inconsistent
...
Problem: Defining function in sandbox is inconsistent, cannot use :function
but can define a lambda.
Solution: Allow defining a function in the sandbox, but also use the sandbox
when executing it. (closes vim/vim#3182 )
93343725b5
2019-03-23 01:25:33 -04:00
Jan Edmund Lazo
2ea6d3ab97
vim-patch:8.1.0019: error when defining a Lambda with index of a function result
...
Problem: Error when defining a Lambda with index of a function result.
Solution: When not evaluating an expression and skipping a function call,
set the return value to VAR_UNKNOWN.
b4518563c7
2019-03-15 22:13:32 -04:00
Justin M. Keyes
c12cf5bde7
autocmd: introduce "once" feature
...
Adds a new feature to :autocmd which sets the handler to be executed at
most one times.
Before:
augroup FooGroup
autocmd!
autocmd FileType foo call Foo() | autocmd! FooGroup * <buffer>
augroup END
After:
autocmd FileType foo once call Foo()
2019-03-10 04:58:30 +01:00
Justin M. Keyes
3cb89cafe3
vim-patch:8.1.0994: fix relative cursor position #9676
...
Problem: Relative cursor position is not calculated correctly.
Solution: Always set topline, also when window is one line only.
(Robert Webb) Add more info to getwininfo() for testing.
8fcb60f961
2019-03-09 23:12:33 +01:00
Justin M. Keyes
4352d41db0
Merge #9662 'vim-patch:8.0.{0643-0646}'
2019-03-08 13:21:11 +01:00
Jan Edmund Lazo
72e304c349
vim-patch:8.1.0998: getcurpos() unexpectedly changes "curswant"
...
Problem: getcurpos() unexpectedly changes "curswant".
Solution: Save and restore "curswant". (closes vim/vim#4069 )
19a66858a5
2019-03-07 22:28:30 -05:00
Billy Su
241b905b13
vim-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.
fbd0b0af68
2019-03-07 23:27:19 +08:00
Justin M. Keyes
33ce70c883
vim-patch:8.1.0932: remove Farsi support ( #9622 )
...
Problem: Farsi support is outdated and unused.
Solution: Delete the Farsi support.
14184a3133
2019-02-17 10:54:00 +01:00
Björn Linse
51fc54325c
ui: implement ext_messages
...
Co-Author: Dongdong Zhou <dzhou121@gmail.com >
2019-02-10 13:36:46 +01:00
Justin M. Keyes
45f25f7e0b
build: PRAGMA_DIAG_PUSH_IGNORE_MISSING_PROTOTYPES
...
On Travis CI, -Wmissing-prototypes gives strange error:
In file included from ../src/nvim/eval.c:5965:
/home/travis/build/neovim/neovim/build/src/nvim/auto/funcs.generated.h.gperf:215:1: error: conflicting types for 'find_internal_func_gperf'
find_internal_func_gperf (register const char *str, register unsigned int len)
^
../src/nvim/eval.c:5962:20: note: previous declaration is here
const VimLFuncDef *find_internal_func_gperf(register const char *str,
^
2019-02-04 13:16:59 +01:00
Justin M. Keyes
f2c6164b04
build: -Wmissing-prototypes
...
ref #343
Though I don't see a strong benefit, it isn't too much of a burden, and
maybe avoids confusion in some cases.
2019-02-04 04:00:20 +01:00
Justin M. Keyes
01b4efe9d9
rename ui_is_external to ui_has ( #9576 )
2019-02-03 16:42:44 +01:00