Björn Linse
c5b812c9ea
env: try find library dir (like /usr[/local]/lib/nvim) and add it to &rtp
2020-02-07 09:22:55 +01:00
Björn Linse
7ce9a5c7da
api: add nvim_get_runtime_file for finding runtime files
2020-02-07 09:22:55 +01:00
Justin M. Keyes
2af04e1997
lint
2020-02-02 22:14:40 -08:00
Justin M. Keyes
efa5af9043
refactor: rename mch_exit => os_exit
...
- No code changes
- Move it to main.c
2020-02-02 22:14:40 -08:00
Justin M. Keyes
d1d5f5103e
refactor: move various things to os/shell.c
...
- No code changes
- Rename mch_expand_wildcards => os_expand_wildcards
2020-02-02 22:14:40 -08:00
Björn Linse
3051342f96
Merge pull request #11801 from bfredl/incsubcrash
...
extmark: fix crash due to invalid column values in inccommand preview
2020-02-02 12:50:57 +01:00
Björn Linse
459a362cc1
extmarks: fix crash due to invalid column values in inccommand preview
...
This used to use -1 and MAXCOL values. Make sure in range values are
used.
2020-02-02 10:50:48 +01:00
Jan Edmund Lazo
5032bc8514
vim-patch:8.1.1269: MS-Windows GUI: multibyte chars with a 0x80 byte do not work
...
Problem: MS-Windows GUI: multibyte chars with a 0x80 byte do not work when
compiled with VIMDLL.
Solution: Adjust the condition for fixing the input buffer. (Ken Takata,
closes vim/vim#4330 )
ed5ab2a959
2020-02-02 03:14:39 -05:00
Jan Edmund Lazo
d6625349f5
vim-patch:8.1.0140: recording into a register has focus events
...
Problem: Recording into a register has focus events. (Michael Naumann)
Solution: Don't record K_FOCUSGAINED and K_FOCUSLOST. (closes vim/vim#3143 )
972bfddc6b
2020-02-01 22:15:21 -05:00
Jan Edmund Lazo
9c1a31927d
vim-patch:8.2.0161: not recognizing .gv file as dot filetype
...
Problem: Not recognizing .gv file as dot filetype.
Solution: Add *.gv to dot pattern. (closes vim/vim#5544 )
f8ddb25789
2020-02-01 18:06:34 -05:00
Alkeryn
26199fedca
vim-patch:8.2.0190: detect Kotlin files [ci skip] #11796
...
Problem: Kotlin files are not recognized.
Solution: Detect Kotlin files. (Alkeryn, closes vim/vim#5560 )
ab067a21b9
2020-02-01 14:15:36 -08:00
Hye Sung Jung
14a8b3b98c
doc: fix typos [ci skip] #11787
2020-01-30 22:56:34 -08:00
Jan Edmund Lazo
ef11b800ac
vim-patch:8.2.0016: test name used twice, option not restored properly
...
Problem: Test name used twice, option not restored properly.
Solution: Rename function, restore option with "&".
a48e78e11f
2020-01-30 21:30:40 -05:00
Jan Edmund Lazo
63983316bd
vim-patch:8.2.0014: test69 and test95 are old style
...
Problem: Test69 and test95 are old style.
Solution: Convert to new style tests. (Yegappan Lakshmanan, closes vim/vim#5365 )
afc13bd827
2020-01-30 21:29:21 -05:00
Axel Forsman
2538e61513
Fix shift change callbacks reading bad cursor ( #11782 )
...
Sloppy code inherited from Vim caused user scripts to be able
to observe the cursor line in an invalid intermediary state,
due to Neovim change callbacks being unbuffered unlike Vim listeners.
Manifested in Vimscript executed from the callback possibly erroring
when `:call`:ing any function,
due to the implicit range `curwin->w_cursor.lnum,curwin->w_cursor.lnum`
failing validation.
Fixed by deferring the call to `changed_lines()` until after
`curwin->w_cursor.lnum` gets its correct value.
2020-01-30 07:34:34 +01:00
Jan Edmund Lazo
b7447a909f
vim-patch:8.2.0177: memory leak in get_tags()
...
Problem: Memory leak in get_tags().
Solution: Free matches when finding a pseudo-tag line. (Dominique Pelle,
closes vim/vim#5553 )
70b3e706b4
2020-01-29 22:18:58 -05:00
Jan Edmund Lazo
31f31b40a8
vim-patch:8.2.0077: settagstack() cannot truncate at current index
...
Problem: settagstack() cannot truncate at current index.
Solution: Add the "t" action. (Yegappan Lakshmanan, closes vim/vim#5417 )
271fa08a35
2020-01-29 21:00:11 -05:00
Jan Edmund Lazo
f719b8898b
vim-patch:8.1.0446: options test fails in the GUI
...
Problem: Options test fails in the GUI.
Solution: Don't try changing 'term' in the GUI.
4f88875725
2020-01-29 20:31:16 -05:00
Jan Edmund Lazo
ca08d5c191
vim-patch:8.1.0445: setting 'term' does not store location for termcap options
...
Problem: Setting 'term' does not store location for termcap options.
Solution: Set the script context for termcap options that are changed when
'term' is set.
35bc7d6c52
2020-01-29 20:30:40 -05:00
Jan Edmund Lazo
0b49cb67f2
vim-patch:8.2.0171: fix use of uninitialized buffer #11786
...
Problem: Coverity warning for using uninitialized buffer.
Solution: Check the skip flag.
9a5e5a3e33
2020-01-28 23:02:11 -08:00
Björn Linse
bfe84adb5a
options: winhighlight: fix incorrect string equality test
2020-01-28 19:10:41 +01:00
Justin M. Keyes
a4b9417c78
lint
2020-01-28 00:22:14 -08:00
Justin M. Keyes
75e8562249
refactor: move session functions to ex_session.c
2020-01-28 00:22:14 -08:00
Justin M. Keyes
d3a9d75c04
Merge #11772 from janlazo/vim-8.2.0152
...
vim-patch:8.2.{152,158}
2020-01-26 19:54:26 -08:00
Jan Edmund Lazo
5ede2766c8
vim-patch:8.2.0158: triggering CompleteDone earlier is not backwards compatible
...
Problem: Triggering CompleteDone earlier is not backwards compatible.
(Daniel Hahler)
Solution: Add CompleteDonePre instead.
3f169ce17e
2020-01-26 21:50:37 -05:00
Jan Edmund Lazo
e673a0df1a
vim-patch:8.2.0152: restoring ctrl_x_mode is not needed
...
Problem: Restoring ctrl_x_mode is not needed.
Solution: Remove restoring the old value, it's changed again soon.
da812e282a
2020-01-26 21:17:54 -05:00
Justin M. Keyes
1c3ca4f18f
mksession: always unix slashes "/" for filepaths
2020-01-26 17:30:47 -08:00
Justin M. Keyes
c4f4719ced
cleanup/ex_docmd.c: remove most put_eol() calls
2020-01-26 17:13:00 -08:00
Justin M. Keyes
9048627806
lint
2020-01-26 17:13:00 -08:00
Justin M. Keyes
2070c082b5
cleanup/ex_docmd.c: remove most put_line() calls
...
- prefer fprintf() instead of put_line()
- PUTLINE_FAIL macro to avoid some boilerplate
2020-01-26 17:13:00 -08:00
Justin M. Keyes
2c1d12d0be
mksession: always write LF "\n" line-endings
...
- remove `MKSESSION_NL`, `mksession_nl`
- deprecate the "unix" flag of 'sessionoptions'
There is no reason to choose CRLF or LF for session files. Instead just
always write LF.
2020-01-26 17:13:00 -08:00
Justin M. Keyes
598a1cd7c5
mksession: avoid ":file …" when restoring non-terminal bufs
2020-01-26 17:13:00 -08:00
Justin M. Keyes
1e103b3c12
mksession: simplify generated commands
...
Doing ":file …" immediately after is enough to fixup the :terminal
buffer name.
ref #5250
2020-01-26 17:13:00 -08:00
Alexandre Dubray
cf67f19ac2
mksession: restore same :term buf in split windows
...
Problem: When session-restore creates a terminal buffer with command
like `:edit term://.//16450:/bin/bash`, the buffer gets
a different name (depends on PID). Thus the later call to
`bufexists('term://.//16450:/bin/bash)` will return false.
Solution: Force the buffer name with :file. This as least ensures
the same buffer will show in multiple windows correctly, as
expected when saving the session. But it still has problems:
1. the PID in the buffer name is bogus
2. redundant :terminal buffers still hang around
fix #5250
2020-01-26 17:13:00 -08:00
Justin M. Keyes
88f133c30d
Merge #11763 'spell: remove non-UTF8 dead code'
2020-01-26 16:42:00 -08:00
Jan Edmund Lazo
0e1dd0a502
spell: towupper(),towlower() are not called
2020-01-26 17:44:24 -05:00
Jan Edmund Lazo
ad272cd2d7
vim-patch:8.1.1144: too strict checking of the 'spellfile' option
...
Problem: Too strict checking of the 'spellfile' option.
Solution: Allow for a path.
862f1e17ea
2020-01-26 17:38:31 -05:00
Jan Edmund Lazo
08c5a874ab
vim-patch:8.1.1143: may pass weird strings to file name expansion
...
Problem: May pass weird strings to file name expansion.
Solution: Check for matching characters. Disallow control characters.
8f130eda47
2020-01-26 17:38:30 -05:00
Jan Edmund Lazo
d5322c8381
spellfile: set_spell_chartab() is dead code
2020-01-26 10:33:01 -05:00
Jan Edmund Lazo
eab052eca2
spell_defs: remove enc_utf8 redundant checks
2020-01-26 10:33:01 -05:00
Jan Edmund Lazo
86c1630a1b
spell: remove enc_utf8 dead code
2020-01-26 10:33:01 -05:00
Jan Edmund Lazo
6c7a995c5f
spell: zero-init structs to fix garbage ptrs
2020-01-26 10:33:00 -05:00
Björn Linse
6f073ccbf4
Merge pull request #11755 from bfredl/qf_msg
...
screen: add missing redraws after a message
2020-01-26 15:38:04 +01:00
Björn Linse
687fc527de
screen: add missing redraws after a message
2020-01-26 13:45:20 +01:00
Justin M. Keyes
07a105f0cb
terminal: trim CWD slash #11762
...
Trailing CWD slash in term:// buffer name breaks the BufReadCmd
handler.
Before:
term://~///25232:/bin/bash
After:
term://~//25232:/bin/bash
ref c6ff23d7a0
ref #11289
2020-01-26 02:13:37 -08:00
Chris LaRose
c6ff23d7a0
terminal: absolute CWD in term:// URI #11289
...
This makes it possible to restore the working directory of :terminal
buffers when reading those buffers from a session file.
Fixes #11288
Co-authored-by: Justin M. Keyes <justinkz@gmail.com >
2020-01-26 00:24:42 -08:00
Jan Edmund Lazo
451af7f087
vim-patch:8.1.2171: mouse support not always available #11761
...
Problem: Mouse support not always available.
Solution: Enable mouse support also in tiny version. Do not define
FEAT_MOUSE_XTERM on MS-Windows (didn't really work).
a1cb1d1dce
2020-01-25 22:05:04 -08:00
Justin M. Keyes
cbcb50dcc9
shell: "..." instead of "[...]" #11760
...
0c1be45ea0
changed pulse logic to output "[...]" instead of nothing.
But that doesn't align with the "..." pulse which may follow it.
ref #11130
2020-01-25 16:49:53 -08:00
Jan Edmund Lazo
94ad6652f1
Remove enc_utf8,has_mbyte dead code
2020-01-25 18:09:17 -05:00
Jan Edmund Lazo
9d826700f7
vim-patch:8.1.2245: third character of 'listchars' tab shows in wrong place
...
Problem: Third character of 'listchars' tab shows in wrong place when
'breakindent' is set.
Solution: Set c_final to NUL. (Naruhiko Nishino, closes vim/vim#5165 )
2f7b7b1e12
2020-01-24 02:17:21 -05:00