Jan Edmund Lazo
b0ab46056f
vim-patch:8.0.0810: MS-Windows: tests still hang
...
Problem: MS-Windows: tests still hang.
Solution: Only create the XfakeHOME directory if it does not exist yet.
d0b6c6c54e
2018-07-24 22:31:26 -04:00
Jan Edmund Lazo
290a9632d6
vim-patch:8.0.0806: tests may try to create XfakeHOME twice
...
Problem: Tests may try to create XfakeHOME twice.
Solution: Avoid loading setup.vim twice.
f98246d484
2018-07-24 22:31:26 -04:00
Jan Edmund Lazo
28c3679b64
vim-patch:8.0.0805: GUI test fails with gnome2
...
Problem: GUI test fails with gnome2.
Solution: Set $HOME to an existing directory.
d1ee0043c0
2018-07-24 22:31:26 -04:00
Justin M. Keyes
ef86aad878
log.c: ISO 8601 date/time
...
After:
INFO 2018-07-17T22:05:46.175 656 main:560: starting main loop
2018-07-24 19:36:38 +02:00
Justin M. Keyes
3258c6a2f4
log.c: include milliseconds
...
closes #8727
Before:
INFO 180711.233956 11124 main:560: starting main loop
After:
INFO 180711.233956.807 11124 main:560: starting main loop
Note:
- Can't use uv_hrtime() nor uv_now(), they are not "since the epoch".
Also, log.c can't assume a loop exists.
2018-07-24 19:36:38 +02:00
Justin M. Keyes
4d6a1e5566
log.c: message format
...
- Log-level name (INFO/ERROR/…) should be in the first column, so that
filtering by log-level is maximally trivial.
- Use 2-digit year. 4-digit year is useless, logs don't survive for
decades without context.
Before:
2018/07/05 17:49:41 INFO 27596 on_process_exit:393: foo
After:
INFO 180705.174941 27596 on_process_exit:393: foo
2018-07-24 19:25:51 +02:00
Justin M. Keyes
ddea519542
rename: os_get_localtime => os_localtime
2018-07-24 19:25:50 +02:00
Björn Linse
72ddbb675f
Merge pull request #8771 from bfredl/glitches
...
Fix redraw glitches with newgrid refactor
Fixes #8768 #8775
2018-07-24 17:45:42 +02:00
Björn Linse
dcac926ced
ui: fix glitches where scrolling region affects clearing of screen
...
the first implemented UI protocol clients (python-gui and builitin TUI)
allowed the cleared region to be restricted by setting the scroll region.
This was never used by nvim though, and not documented and implemented by
newer clients, to check we remain compatible with both kind of clients,
ensure the scroll region is in a reset state.
2018-07-24 16:38:51 +02:00
Björn Linse
d545413492
screen.c: fix redrawing tabline when messages overflow screen
2018-07-24 16:38:24 +02:00
Björn Linse
11861bc9c8
tests: add test for switching tabpage right after scroll
2018-07-24 16:37:48 +02:00
Björn Linse
d183103b45
test: assert scroll region state for clear
...
some clients assume this, so tests should check it
2018-07-24 16:37:04 +02:00
Björn Linse
ed5ac84ab0
tests: test for redrawing tabline when msgsep marker goes outside screen
2018-07-24 16:36:20 +02:00
Jan Edmund Lazo
f0a702d116
file_search: free stackp if vim_findfile() failed
...
ff_free_stack_element() accepts NULL ptr and returns early.
This removes the need to check if stackp is not NULL.
2018-07-24 01:15:24 -04:00
Jan Edmund Lazo
7c7701af12
vim-patch:8.1.0111: .po files do not use recommended names
...
Problem: .po files do not use recommended names.
Solution: Give a warning if the recommended name is not used. Accept the
recommended name for conversion. (Christian Brabandt, Ken Takata)
d1d037e901
2018-07-23 19:35:11 -04:00
Jan Edmund Lazo
57c095d5fc
vim-patch:8.0.1839: script to check .po file doesn't check for plural header
...
Problem: Script to check .po file doesn't check for plural header.
Solution: Add a check that the plural header is present when needed.
9cfc7d885c
2018-07-23 12:42:46 -04:00
Jan Edmund Lazo
7cf36fc67e
vim-patch:8.0.1778: script to check translations does not always work
...
Problem: Script to check translations does not always work.
Solution: Go to first line before searching for MIME.
b07bbb0d29
2018-07-23 12:41:29 -04:00
Jan Edmund Lazo
b63f5c170d
vim-patch:8.0.0835: translations check with msgfmt does not work
...
Problem: Translations check with msgfmt does not work.
Solution: Add a space before the file name.
65cedb2074
2018-07-23 12:34:21 -04:00
Jan Edmund Lazo
45a2c6543c
vim-patch:8.0.0830: translating messages is not ideal
...
Problem: Translating messages is not ideal.
Solution: Add a remark about obsolete messages. Use msgfmt in the check
script. (Christian Brabandt)
aaef1bae3c
2018-07-23 12:33:39 -04:00
Jan Edmund Lazo
1ed5abfe88
vim-patch:8.0.0794: checking translations fails with multiple NL
...
Problem: The script to check translations fails if there is more than one
NL in one line.
Solution: Count the number of NL characters. Make count() accept a string.
9966b21a57
2018-07-23 11:50:37 -04:00
Jan Edmund Lazo
d551a49958
vim-patch:8.0.0734: the script to check translations can be improved
...
Problem: The script to check translations can be improved.
Solution: Restore the view when no errors are found. Check for matching
line break at the end of the message. (Christian Brabandt)
7f93703149
2018-07-23 10:31:37 -04:00
Jan Edmund Lazo
ddc243f32a
vim-patch:8.0.0726: translations cleanup script is too conservative
...
Problem: Translations cleanup script is too conservative.
Solution: Also delete untranslated messages.
4d2ba822fd
2018-07-23 10:29:41 -04:00
Jan Edmund Lazo
6285b518d4
vim-patch:8.0.1622: possible NULL pointer dereference
...
Problem: Possible NULL pointer dereferencey. (Coverity)
Solution: Reverse the check for a NULL pointer.
6ed86ad170
2018-07-23 08:34:26 -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
Jan Edmund Lazo
9fbbec76aa
vim-patch:8.0.1502: in out-of-memory situation character is not restored
...
Problem: In out-of-memory situation character is not restored. (Coverity)
Solution: Restore the character in all situations.
71a43c0137
2018-07-23 00:01:07 -04:00
zhou13
c8e7a447c5
build: Enable LTO (Link Time Optimization) #8654
2018-07-23 03:22:14 +02:00
Justin M. Keyes
2000b6a64a
Merge #8589 'VimL: Remove legacy v:xx aliases'
2018-07-23 03:18:10 +02:00
Nathan Long
cdbfdcfcc4
doc: README: "Transitioning from Vim" note ( #8763 )
2018-07-23 03:06:27 +02:00
Jan Edmund Lazo
765711e272
vim-patch:8.0.1765: CTRL-G j in Insert mode is incorrect when 'virtualedit' set ( #8757 )
...
Problem: CTRL-G j in Insert mode is incorrect when 'virtualedit' is set.
Solution: Take coladd into account. (Christian Brabandt, closes vim/vim#2743 )
db0eedec16
2018-07-23 02:11:13 +02:00
Justin M. Keyes
48c0e916a1
Merge #8753 from janlazo/vim-8.0.0724
2018-07-23 02:10:06 +02:00
Jan Edmund Lazo
c9f2faf3bf
vim-patch:8.0.1398: :packadd does not load packages from the "start" directory ( #8762 )
...
Problem: :packadd does not load packages from the "start" directory.
(Alejandro Hernandez)
Solution: Make :packadd look in the "start" directory if those packages were
not loaded on startup.
9e1d399e63
2018-07-23 02:04:49 +02:00
Shougo Matsushita
03bd5a4b91
Make "v:errmsg", "v:shell_error" and "v:this_session" distinct
2018-07-23 08:47:51 +09:00
Jan Edmund Lazo
563957e3cb
vim-patch:8.0.0493: crash with cd command with very long argument
...
Problem: Crash with cd command with very long argument.
Solution: Check for running out of space. (Dominique Pellé, closes vim/vim#1576 )
15618fa643
2018-07-22 19:34:58 -04:00
Synray
13d29cb9ed
man.vim: improve manSentence regex ( #8764 )
...
ref https://github.com/neovim/neovim/pull/8709#issuecomment-406319186
2018-07-22 18:30:38 +02:00
Björn Linse
94841e5eae
Merge pull request #8221 from bfredl/hlstate
...
UI grid protocol revision: line based updates and semantic highlights
2018-07-21 14:41:49 +02:00
Björn Linse
6b8cd827a9
ui: add tests for hlstate extension
2018-07-21 13:21:59 +02:00
Björn Linse
0bdf8979a2
ui: docs for ext_newgrid and ext_hlstate
2018-07-21 13:21:59 +02:00
Björn Linse
1adb01c120
ui: use line-based rather than char-based updates in screen.c
...
Add ext_newgrid and ext_hlstate extensions. These use predefined
highlights and line-segment based updates, for efficiency and
simplicity.. The ext_hlstate extension in addition allows semantic
identification of builtin and syntax highlights.
Reimplement the old char-based updates in the remote UI layer, for
compatibility. For the moment, this is still the default. The bulitin
TUI uses the new line-based protocol.
cmdline uses curwin cursor position when ext_cmdline is active.
2018-07-21 13:21:58 +02:00
Björn Linse
2134396074
ui: add TODO for non-working terminal linewrap
...
Note: this has not been working since the TUI reimplementation
2018-07-21 13:20:38 +02:00
Björn Linse
989b585e10
highlight: refactor to use stateful representation
...
This allows us to keep track of the source higlight groups,
and not only the final combined highlights.
2018-07-21 13:20:37 +02:00
Björn Linse
696e24f311
highlight: extract low-level highlight logic from syntax, ui
2018-07-21 10:37:44 +02:00
Justin M. Keyes
5ff90a100a
Merge #8761 from janlazo/vim-8.0.1503
2018-07-20 03:56:13 +02:00
Justin M. Keyes
f5d7123f6c
version bump
2018-07-19 21:53:21 +02:00
Jan Edmund Lazo
588e86bda6
hardcopy: refactor mch_print_text_out()
...
Combine variable declaration and initialization to add const.
2018-07-19 12:33:05 -04:00
Jan Edmund Lazo
8441af37d8
vim-patch:8.1.0056: crash when using :hardcopy with illegal byte
...
Problem: Crash when using :hardcopy with illegal byte.
Solution: Check for string_convert() returning NULL. (Dominique Pelle)
43dee181f5
2018-07-19 12:21:14 -04:00
Jan Edmund Lazo
2ea619c10b
vim-patch:8.0.1503: access memory beyond end of string
...
Problem: Access memory beyond end of string. (Coverity)
Solution: Keep allocated memory in separate pointer. Avoid outputting the
NUL character.
cdd09aa51a
2018-07-18 21:20:11 -04:00
Justin M. Keyes
489d32f2b8
startup: fix ":if 0|syntax on|endif" bug ( #8731 )
...
Problem: ":if 0|syntax {on,off}|endif" skips the default of "syntax on"
because the executor was setting the `did_syntax_onoff` flag even though
"syntax {on,off}" is not actually executed.
closes #8728
2018-07-18 14:30:11 +02:00
Justin M. Keyes
cd94dd6bb2
NVIM v0.3.1
...
FEATURES:
07499a842b
#8709 man.vim: C highlighting for EXAMPLES section
07f82ad1be
#8699 TUI: urxvt: also send xterm focus-reporting seqs
40911e435e
#8616 API: emit nvim_buf_lines_event from :terminal
c46997aa87
#8546 fillchars: Add "eob" flag
FIXES:
74d19f685f
#8576 startup: avoid blank stdin buffer if other files were opened
4874214139
#8737 Only waitpid() for processes that we care about
cd6e7e8cf3
#8743 Check all child processes for exit in SIGCHLD handler
c230ef24a2
#8746 channel.c: Prevent channel_destroy_early() from freeing uninitialized rpc stuff
0ed8b12a07
#8681 transstr_buf: fix length comparison
d241f278d3
#8708 TUI: Fix standout mode
9afed40ea6
#8698 man.vim: fix for mandoc
e889640048
#8682 provider/node: npm --loglevel silent
1cbc830189
#8613 API: nvim_win_set_cursor: set curswant
bf6048e81d
#8628 checkhealth: Python: fix VIRTUAL_ENV check
3cc3506965
#8528 checkhealth: node.js: also search yarn
CHANGES:
b7514493a0
#8619 defaults: shortmess+=F
12481781a0
#8578 highlight: high-priority CursorLine if fg is set.
01570f1ff3
#8726 terminal: handle &confirm and :confirm on unloading
56065bbdc6
#8721 screen: truncate showmode messages
bf2460e2f9
#7551 buffer: fix copying :setlocal options
c1c14faad9
#8520 Ex mode: always "improved" (gQ)
050f3975f6
#7992 options: remove 'maxcombine` option (always 6)
INTERNAL:
463da84806
#7992 screen: use UTF-8 representation
2018-07-18 13:44:59 +02:00
Justin M. Keyes
44b4f8c6e9
Merge #8679 from justinmk/doc
2018-07-18 13:42:07 +02:00
Justin M. Keyes
0615450688
gen_api_vimdoc.py: add whitespace before "~"
2018-07-18 13:38:06 +02:00