aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
| * | | vim-patch:8.1.1610: there is no way to add or load a buffer without side effectsShougo Matsushita2019-07-06
| | | | | | | | | | | | | | | | | | | | | | | | Problem: There is no way to add or load a buffer without side effects. Solution: Add the bufadd() and bufload() functions. https://github.com/vim/vim/commit/15e248e37f3925d430f96e945d52d3dc423cdc83
* | | | PVS/V547: dead code #10459Bartosz Miera2019-07-13
| | | |
* | | | vim-patch:8.1.1660: assert_fails() inside try/catch #10472Daniel Hahler2019-07-13
| | | | | | | | | | | | | | | | | | | | Problem: Assert_fails() does not fail inside try/catch. Solution: Set trylevel to zero. (Ozaki Kiichi, closes vim/vim#4639) https://github.com/vim/vim/commit/7780e5c1c5485a979ab6e3914a43e17912e213a8
* | | | build: fix check_c_compiler_flag for -Wno-… (#10483)Daniel Hahler2019-07-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `check_c_compiler_flag(-Wno-doesnotexist …)` is successful always, apparently for all "no-" prefixes. Therefore check for the flag itself (without "no-" prefix). I am seeing a warning if the source fails to compile: > cc1: warning: unrecognized command line option ‘-Wno-meh’ Which is turned into an error with `-Werror`: > cc1: error: unrecognized command line option ‘-Wno-meh’ [-Werror] But when it compiles successfully, there is no warning/error. gcc (GCC) 9.1.0.
* | | | oldtest: more compact output with "clean" target (#10477)Daniel Hahler2019-07-12
| | | | | | | | | | | | | | | | Previously it would be displayed across multiple lines (with the escaped newlines), while this makes it display in a single line.
* | | | vim-patch:8.1.1173: suspend test has duplicated lines (#10466)Daniel Hahler2019-07-11
| | | | | | | | | | | | | | | | | | | | Problem: Suspend test has duplicated lines. Solution: Use a function. https://github.com/vim/vim/commit/a8356bc1734195d130c6eeaf4858356ae3a3f722
* | | | Merge pull request #9575 from bfredl/redrawdebugBjörn Linse2019-07-09
|\ \ \ \ | | | | | | | | | | ui: implement better redrawdebug for the compositor
| * | | | ui: add 'redrawdebug' option for flexible debugging of redrawingBjörn Linse2019-07-09
| | | | |
* | | | | Merge pull request #10457 from bfredl/dwfloatBjörn Linse2019-07-09
|\ \ \ \ \ | | | | | | | | | | | | compositor: handle float overlapping left half of doublewidth char
| * | | | | compositor: handle float overlapping left half of doublewidth charBjörn Linse2019-07-09
| |/ / / /
* | | | | viml/reltime(): allow negative result #10453Justin M. Keyes2019-07-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - define proftime_T as signed integer - profile_sub(): allow negative result closes #10452
* | | | | eval.c: clang/"Dead assignment" #10446Bartosz Miera2019-07-09
|/ / / /
* | | | window: allow resize wincmds for floatsBjörn Linse2019-07-08
| | | |
* | | | Merge pull request #10090 from bfredl/floatpopupBjörn Linse2019-07-07
|\ \ \ \ | | | | | | | | | | api/window: add style="minimal" flag to disable unwanted UI features for simple floats
| * | | | api/window: add style="minimal" flag to nvim_open_win()Björn Linse2019-07-07
| |/ / /
* | / / CI: improve gcov handling #10404Daniel Hahler2019-07-07
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | - Move __gcov_flush to process_spawn, for more reliable coverage tracking of subprocesses - Travis: use GCOV_ERROR_FILE - codecov: use "-X fix" to skip "fixing" uploaded coverage data; it should be handled by codecov's backend instead. - AppVeyor: no $PATH mangling, which breaks with the improved coverage tracking due to missing .dll in PATH.
* | | Merge #10394 from janlazo/vim-8.1.1614Justin M. Keyes2019-07-06
|\ \ \ | | | | | | | | vim-patch:8.1.{1614,1632,1634,1639}
| * | | vim-patch:8.1.1639: changing an autoload name into a file name is inefficientJan Edmund Lazo2019-07-05
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Changing an autoload name into a script file name is inefficient. Solution: Remember the last replaced #. (Ozaki Kiichi, closes vim/vim#4618) https://github.com/vim/vim/commit/28fc247f8d94a1cfabbcf2691ca942bde96f6d2f
| * | | vim-patch:8.1.1634: terminal test fails when term_getansicolors() is missingJan Edmund Lazo2019-07-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Terminal test fails when term_getansicolors() is missing. Diff test fails without +rightleft. (Dominique Pelle) Solution: Check if term_getansicolors() is supported. (closes vim/vim#4597) https://github.com/vim/vim/commit/981d9dc8f3d7a470eb3be7ba60fe1c1f31e7f470
| * | | vim-patch:8.1.1632: build with EXITFREE but without +arabic failsJan Edmund Lazo2019-07-05
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Build with EXITFREE but without +arabic fails. Solution: Rename the function and adjust #ifdefs. (closes vim/vim#4613) https://github.com/vim/vim/commit/48ac671fe5cb5a7c2d5263d2f122e5e903022e30
| * | | vim-patch:8.1.1614: 'numberwidth' can only go up to 10Jan Edmund Lazo2019-07-05
| |/ / | | | | | | | | | | | | | | | Problem: 'numberwidth' can only go up to 10. Solution: Allow up to 20. (Charlie Stanton, closes vim/vim#4584) https://github.com/vim/vim/commit/f8a071265535b8cc43e50a81f4d5049883ca50e4
* / / func_clear_items: use XFREE_CLEAR #10436Daniel Hahler2019-07-06
|/ / | | | | Follow-up to https://github.com/neovim/neovim/pull/10428#discussion_r300813498
* | vim-patch:8.1.0229: crash when dumping profiling data #10428Daniel Hahler2019-07-05
| | | | | | | | | | Problem: Crash when dumping profiling data. Solution: Reset flag indicating that initialization was done. https://github.com/vim/vim/commit/79c2ad50b8069bbb3281bcabe412bd6641756724
* | Merge pull request #10398 from bfredl/resizeautocmdBjörn Linse2019-07-05
|\ \ | | | | | | screen: disable redrawing inside VimResized
| * | screen: disable redrawing inside VimResizedBjörn Linse2019-07-05
| | | | | | | | | | | | | | | | | | Note: test doesn't fail on master. I cannot reproduce the glitches with -u NONE, probably it requires interfering events. But add some coverage for these checks at least.
* | | highlight: show "hi Group" message correctly when not using the screenBjörn Linse2019-07-05
|/ / | | | | | | | | | | | | ext_message doesn't set msg_col. Add a space and let client deal with wrapping. When using silent redirect show the unwrapped message form. Removed check is already part of msg_advance()
* | Merge pull request #10414 from blueyed/luacheckDaniel Hahler2019-07-04
|\ \ | | | | | | Improve luacheck integration, fix more issues.
| * | Improve luacheck setup [skip appveyor]Daniel Hahler2019-07-04
| | | | | | | | | | | | | | | | | | | | | | | | - Move .luacheckrc to root, add read_globals=vim - Simplify lualint target, run it on all lua files - Lint preload.lua, but ignore W211 - Remove testlint target, included in lualint (and lint) - Clean up .luacheckrc
| * | Fix luacheck errors for all Lua source filesSameed Ali2019-07-04
| | |
* | | win,fs.c: Fix is_executable_ext #10209erw72019-07-04
|/ / | | | | | | | | | | | | | | | | | | | | Fix issue that increment expression is executable and pointer ext pointing out of the buffer, if the pointer ext points to the terminating NUL. * Change termination condition judgment to one place * Change first condition judgment Change to not evaluate *(ext -1) in the first condition judgment. * Change to use copy_option_part instead of STRLCPY
* | cmdline: remove local variables i and j from command_line_stateBjörn Linse2019-07-02
| |
* | defaults: wildoptions=pum,tagfile #10384Justin M. Keyes2019-07-01
| | | | | | ref #6289
* | test/old: pass Test_recover_root_dir on Windows (#10207)Jan Edmund Lazo2019-07-01
| | | | | | | | | | | | | | | | | | | | | | | | | | * Revert "oldtests: win: keep set dir=/" This reverts commit 714e0f8bf05cc6febcbcd8cbcbe5f119c37a14b0. * test/old: set swap directory to non-existent drive Appveyor uses Administrator user so it can write anywhere in C:\\. Neovim creates a directory for the swap file if the directory does not exist. D:\\ is the backup/recovery drive so use F:\\ invoke error E303.
* | Merge pull request #10389 from bfredl/luafloatBjörn Linse2019-07-01
|\ \ | | | | | | api/lua: make nvim_execute_lua use native lua floats, not special tables
| * | api/lua: make nvim_execute_lua use native lua floats, not special tablesBjörn Linse2019-07-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rationale: the purpose of nvim_execute_lua is to simply call lua code with lua values. If a lua function expects a floating point value, it should be enough to specify a float as argument to nvim_execute_lua. However, make sure to preserve the existing roundtripping behavior of API values when using `vim.api` functions. This is covered by existing lua/api_spec.lua tests.
* | | cmdline: correct the column position of wildoptions=pum popupmenuBjörn Linse2019-07-01
|/ / | | | | | | | | - position might get invalid with "longest" match - position might be wrong when completed pattern ends in "/"
* | Merge pull request #10316 from bfredl/cb_safetyBjörn Linse2019-06-30
|\ \ | | | | | | luv callbacks: throw error on deferred methods instead of crashing
| * | make vim.loop == require'luv'Björn Linse2019-06-30
| | | | | | | | | | | | | | | This avoids initializing libluv a second time if a plugin invokes require'luv'. It is probably not an issue, but better to be safe.
| * | libluv: use luv_set_callback to control callback executionBjörn Linse2019-06-30
| | | | | | | | | | | | | | | Disable the use of deferred API functions in a fast lua callback Correctly display error messages from a fast lua callback
| * | rename: FUNC_API_ASYNC => FUNC_API_FASTBjörn Linse2019-06-30
| | |
* | | fileio.c: eliminate set_file_time() #10357Justin M. Keyes2019-06-30
|/ / | | | | Introduce os_file_settime(), remove cruft.
* | :digraphs : check for CTRL-C less often #10376Justin M. Keyes2019-06-30
| | | | | | No need to do this so frequently.
* | doc [ci skip] #10177Justin M. Keyes2019-06-30
| | | | | | ref #10278 #10279 #10353
* | :ls : show "R", "F" for terminal-jobs #10370Justin M. Keyes2019-06-29
| | | | | | | | | | | | | | | | | | | | | | This matches Vim behavior. From `:help :ls` : R a terminal buffer with a running job F a terminal buffer with a finished job ? a terminal buffer without a job: `:terminal NONE` TODO: implement `:terminal NONE`. ref #10349
* | build: CMake: do not set CMP0059 to old (#10363)Daniel Hahler2019-06-29
| | | | | | | | | | | | | | | | | | Keeps using add_definitions for compatibility with older CMake. Newer CMake (3.12) would have `add_compile_definitions`, but it is not required, since `add_defitions` was meant to be used for compile/preprocessor definitions initially anyway. Ref: https://github.com/neovim/neovim/pull/4389
* | viml/profile: switch to uv_gettimeofday() #10356Justin M. Keyes2019-06-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Performance of high-resolution time (clock_gettime via uv_hrtime) is expensive on some systems. For profiling VimL, syntax, etc., we don't care about nanosecond-precision and monotonicity edge-cases, so avoid uv_hrtime(). closes #10328 From the uv__hrtime() source: https://github.com/libuv/libuv/blob/0cdb4a5b4b706d0e09413d9270da28f9a88dc083/src/unix/linux-core.c#L442-L462 /* Prefer CLOCK_MONOTONIC_COARSE if available but only when it has * millisecond granularity or better. CLOCK_MONOTONIC_COARSE is * serviced entirely from the vDSO, whereas CLOCK_MONOTONIC may * decide to make a costly system call. */ This micro-benchmark (Debug build) shows negligible differences on my system: #include <sys/time.h> ... proftime_T tm = profile_start(); int trials = 999999; int64_t t = 0; struct timeval tv; for (int i = 0; i < trials; i++) { t += gettimeofday(&tv,NULL); } tm = profile_end(tm); ILOG("%d trials of gettimeofday: %s", trials, profile_msg(tm)); tm = profile_start(); for (int i = 0; i < trials; i++) { t += os_hrtime(); } tm = profile_end(tm); ILOG("%d trials of os_hrtime: %s", trials, profile_msg(tm)); tm = profile_start(); for (int i = 0; i < trials; i++) { t += os_utime(); } tm = profile_end(tm); ILOG("%d trials of os_utime: %s", trials, profile_msg(tm)); ILOG("%zu", t);
* | vim-patch:8.0.1259: search test can be flakyJan Edmund Lazo2019-06-28
| | | | | | | | | | | | | | | | Problem: Search test can be flaky. Solution: Use WaitFor() instead of a delay. Make it possible to pass a funcref to WaitFor() to avoid the need for global variables. (James McCoy, closes vim/vim#2282) https://github.com/vim/vim/commit/13deab8d08145c1f6e2a3e82cb547bc7f87a3686
* | vim-patch:8.0.1238: incremental search only shows one matchJan Edmund Lazo2019-06-28
| | | | | | | | | | | | | | Problem: Incremental search only shows one match. Solution: When 'incsearch' and and 'hlsearch' are both set highlight all matches. (haya14busa, closes vim/vim#2198) https://github.com/vim/vim/commit/2e51d9a0972080b087d566608472928d5b7b35d7
* | vim-patch:8.0.1202: :wall gives an errof for a terminal windowJan Edmund Lazo2019-06-28
| | | | | | | | | | | | | | Problem: :wall gives an errof for a terminal window. (Marius Gedminas) Solution: Don't try writing a buffer that can't be written. (Yasuhiro Matsumoto, closes vim/vim#2190) https://github.com/vim/vim/commit/059db5c29ffef283a4b90bab9228708fa32e3dd2
* | vim-patch:8.0.1120: :tm means :tmap instead of :tmenuJan Edmund Lazo2019-06-27
| | | | | | | | | | | | Problem: :tm means :tmap instead of :tmenu. (Taro Muraoka) Solution: Move the new entry below the old entry. (closes vim/vim#2102) https://github.com/vim/vim/commit/63c4e8a1986796094e6f15b893f2deccdf482617