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
Marco Hinz
28f87c505d
Merge #9539 "options: make 'listchars' and 'fillchars' local to window"
2019-01-28 00:45:59 +01:00
Björn Linse
2ab70cb55c
window/ui: reorganize size variables, fix terminal window size with multigrid.
...
wp->w_height_inner now contains the "inner" size, regardless if the
window has been drawn yet or not. It should be used instead of
wp->w_grid.Rows, for stuff that is not directly related to accessing
the allocated grid memory, such like cursor movement and terminal size
2019-01-27 12:07:06 +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
Björn Linse
27b7813025
cleanup: reduce some duplicate code, avoid function pointers for a condition
...
Add 'multiline' flag to history for correct :messages output
Use larger buffer size for multiline messages. if this turns out to not
be enough, we could do size calculation like api_set_error
2019-01-23 19:34:13 +01:00
Alexandre Dubray
67bac681ea
ex_echo: reuse code from message.c to show arg to user
2019-01-22 20:16:12 +01:00
Björn Linse
a2be9c7218
ui: multigrid mouse support
2019-01-20 10:32:05 +01:00
Justin M. Keyes
ed171f7be2
PVS/V1028: cast operands, not the result
2019-01-18 00:09:50 +01:00
Marco Hinz
db3c797c6b
provider: improve error message if provider is missing ( #9487 )
...
Move `has_eval_provider()` check to `eval_call_provider()` to make sure that
every code path calls it first.
Previously we would, when pynvim was missing, get a nice error message for
`:python3 1`, but not for `:py3file blah`.
Fixes https://github.com/neovim/neovim/issues/9485
2019-01-12 00:52:12 +01:00
Jan Edmund Lazo
fba80f5edc
vim-patch:8.1.0685: get_buf_tv() is named inconsistently
...
Problem: get_buf_tv() is named inconsistently.
Solution: Rename it to tv_get_buf(). (Yegappan Lakshmanan, closes vim/vim#3759 )
f2d79fa92d
2019-01-05 23:10:00 -05:00
Justin M. Keyes
a70fde1b45
build: enable -Wshadow
...
Note about shada.c:
- shada_read_next_item_start was intentionally shadowing `unpacked` and
`i` because many of the macros (e.g. ADDITIONAL_KEY) implicitly
depended on those variable names.
- Macros were changed to parameterize `unpacked` (but not `i`). Macros
like CLEAR_GA_AND_ERROR_OUT do control-flow (goto), so any other
approach is messy.
2019-01-02 21:06:37 +01:00
David Jimenez
8f288698e4
vim-patch:8.0.0251: not easy to select Python 2 or 3 ( #9173 )
...
Problem: It is not so easy to write a script that works with both Python 2 and Python 3, even when the Python code works with both.
Solution: Add 'pyxversion', :pyx, etc. (Marc Weber, Ken Takata)
f42dd3c390
2019-01-02 14:51:03 +01:00
Björn Linse
c72d9ce0a6
multigrid: rename grid->ScreenLines and other grid arrays
2018-12-31 16:24:07 +01:00
Utkarsh Maheshwari
911b731378
multigrid: Get rid of global ScreenLines and set_screengrid
2018-12-31 12:44:22 +01:00
Utkarsh Maheshwari
01555de2da
multigrid: Allow UIs to set grid size different from window size
2018-12-31 12:44:21 +01:00
Marco Hinz
5062d8e0dd
provider: make :ruby provider check use same code path as :python
...
Prior to this change, the provider check for ruby was special-cased and now it
returns E319, like :python etc.
References #9354
2018-12-12 21:59:02 +01:00
Jan Edmund Lazo
f177005447
vim-patch:8.1.0564: setting v:errors to wrong type still possible
...
Problem: Setting v:errors to wrong type still possible.
Solution: Return after giving an error message. (Christian Brabandt)
88b53fd052
2018-12-06 23:24:09 -05:00
Jan Edmund Lazo
4c4997e988
vim-patch:8.1.0563: setting v:errors to a string give confusing error
...
Problem: Setting v:errors to a string give confusing error. (Christian
Brabandt)
Solution: Change internal error into normal error message.
74ea88c170
2018-12-06 23:21:49 -05:00
Jan Edmund Lazo
7697628345
vim-patch:8.0.1425: execute() does not work in completion of user command ( #9317 )
...
Problem: execute() does not work in completion of user command. (thinca)
Solution: Switch off redir_off and restore it. (Ozaki Kiichi, closes vim/vim#2492 )
2095148277
2018-12-06 01:14:19 +01:00
Jan Edmund Lazo
f59ba0fad0
vim-patch:8.1.0551: expression evaluation may repeat an error message
...
Problem: Expression evaluation may repeat an error message. (Jason
Franklin)
Solution: Check for the value of did_emsg when giving an error
for the :execute command.
8ff5af9544
2018-11-30 23:35:36 -05:00
Jan Edmund Lazo
5de5507ea6
vim-patch:8.1.0550: expression evaluation may repeat an error message
...
Problem: Expression evaluation may repeat an error message. (Jason
Franklin)
Solution: Increment did_emsg and check for the value when giving an error
for the echo command.
76a6345433
2018-11-30 23:35:36 -05:00
Sha Liu
3ec5351fd1
fix wrong winnr in getwininfo
2018-11-27 10:30:41 +08:00
Tommy Allen
c4c74c3883
jobstart(): Fix hang on non-executable cwd #9204
...
* os/fs.c: add os_isdir_executable()
* eval.c: fix hang on job start caused by non-executable cwd option
* channel.c: assert cwd is an executable directory
* test: jobstart() produces error when using non-executable cwd
2018-11-07 10:31:25 +01:00
Jan Edmund Lazo
f08869cff2
vim-patch:8.1.0511: ml_get error when calling a function with a range ( #9207 )
...
Problem: ml_get error when calling a function with a range.
Solution: Don't position the cursor after the last line.
9e353b5265
2018-11-06 13:49:20 +01:00
Björn Linse
c40f992e10
api: simplify nvim_buf_get_offset function
2018-11-01 22:00:40 +01:00
Justin M. Keyes
863dbbb3d4
fix warning: "Uninitialized argument"
...
clang scan-build thinks os_system() could set `do_profiling` flag.
Found by clang scan-build 5.0
2018-10-21 23:24:21 +02:00
Jan Edmund Lazo
0394cb23e9
lint
2018-10-09 21:55:35 -04:00
Jan Edmund Lazo
c2e7f39528
vim-patch:8.0.1423: error in return not caught by try/catch
...
Problem: Error in return not caught by try/catch.
Solution: Call update_force_abort(). (Yasuhiro Matsomoto, closes vim/vim#2483 )
fabaf753e2
2018-10-09 21:38:33 -04:00
Justin M. Keyes
512e0caae2
Merge #9036 'func_attr_printf'
2018-10-07 19:36:01 +02:00
MichaHoffmann
2c84421de2
src/nvim/eval.c
...
src/nvim/eval/typval.c
src/nvim/fileio.c
src/nvim/main.c
src/nvim/regexp_nfa.c
src/nvim/spellfile.c
changed some EMSG[..] Macros to emsgf
2018-10-07 12:24:29 +02:00
Jan Edmund Lazo
07fbdf4acc
vim-patch:8.0.1832: cannot use :unlet for an environment variable
...
Problem: Cannot use :unlet for an environment variable.
Solution: Make it work. Use unsetenv() if available.
(Yasuhiro Matsumoto, closes vim/vim#2855 )
137374fd65
2018-10-02 20:44:48 -04:00
Jan Edmund Lazo
33ef959814
vim-patch:8.1.0068: nasty autocommands can still cause using freed memory
...
Problem: Nasty autocommands can still cause using freed memory.
Solution: Disallow using setloclist() and setqflist() recursively.
2f82ca7d79
2018-09-30 02:06:43 -04:00
MichaHoffmann
8cb04c2230
fixed lint errors
2018-09-24 22:05:01 +02:00
MichaHoffmann
50c22325df
src/nvim/eval.c: printf error
2018-09-24 21:31:57 +02:00
MichaHoffmann
affef0aab8
add func_attr_printf in :
...
log.c
message.c
strings.c
fixed some printf warnings in:
src/nvim/undo.c
src/nvim/eval.c
src/nvim/eval/encode.c
src/nvim/eval/typval.c
src/nvim/ex_getln.c
src/nvim/fileio.c
src/nvim/lua/executor.c
src/nvim/main.c
src/nvim/regexp_nfa.c
src/nvim/shada.c
src/nvim/spellfile.c
src/nvim/tui/terminfo.c
src/nvim/garray.h
2018-09-24 21:28:04 +02:00
Justin M. Keyes
ecdd2df88a
shell/logging: Fix E730 with verbose system({List}) #9009
...
ref https://github.com/neovim/neovim/issues/9001#issuecomment-421843790
Steps to reproduce:
:set verbose=9
:call system(['echo'])
E730: using List as a String
2018-09-21 09:20:04 +02:00
Jan Edmund Lazo
300a7a4cf4
replace fallthrough comment with macro
...
Follow-up of vim-patch:8.0.1215
2018-09-21 00:05:06 -04:00
Wang Shidong
f6d5426fc8
Update eval.c
2018-09-13 21:55:20 +08:00
Jan Edmund Lazo
ea5337d9b5
vim-patch:8.0.1172: when E734 is given option is still set ( #8988 )
...
Problem: When E734 is given option is still set.
Solution: Assign NULL to "s". (Christian Brabandt)
2a6a6c3014
2018-09-13 07:52:31 +02:00
Björn Linse
d6b3c09129
Merge pull request #8945 from ZviRackover/fix-7401-step5
...
mbyte: remove mb_char2bytes
2018-09-11 09:03:09 +02:00
Justin M. Keyes
036051b218
Merge pull request #8974 from janlazo/vim-8.0.1377
2018-09-11 08:33:21 +02:00
Jan Edmund Lazo
207cfce3de
vim-patch:8.1.0011: maparg() and mapcheck() confuse empty and non-existing ( #8976 )
...
Problem: maparg() and mapcheck() confuse empty and non-existing.
Solution: Return <Nop> for an existing non-empty mapping. (closes vim/vim#2940 )
f88a5bc102
2018-09-10 09:27:04 +02:00
Jan Edmund Lazo
39ab7cc6fb
vim-patch:8.0.1378: autoload script sources itself when defining function
...
Problem: Autoload script sources itself when defining function.
Solution: Pass TFN_NO_AUTOLOAD to trans_function_name(). (Yasuhiro
Matsumoto, closes vim/vim#2423 )
3388d33457
2018-09-09 20:30:32 -04:00
Jan Edmund Lazo
3fd9ffd368
vim-patch:8.0.1377: cannot call a dict function in autoloaded dict
...
Problem: Cannot call a dict function in autoloaded dict.
Solution: Call get_lval() passing the read-only flag.
6e65d594aa
2018-09-09 18:12:25 -04:00
Jan Edmund Lazo
dd0dd4d78d
vim-patch:8.0.1115: crash when using foldtextresult() recursively ( #8972 )
...
Problem: Crash when using foldtextresult() recursively.
Solution: Avoid recursive calls. (Yasuhiro Matsumoto, closes vim/vim#2098 )
495b7dd213
2018-09-09 19:22:10 +02:00
ZviRackover
329cfc3303
lint: clean-up after parent commits
2018-09-09 10:45:50 +03:00