aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* | | | | eval: use char* for set_var_lval() paramJan Edmund Lazo2021-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'op' param is casted to char_u* within set_val_lval(). Most calls to set_val_lval() cast arg to 'op' from char to char_u. Remove these pointless type casts.
* | | | | eval: use char* for set_internal_string_var()Jan Edmund Lazo2021-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "name" param was cast to (const char *). All calls to set_internal_string_var() cast from (char *) to (char_u *). Remove these useless casts.
* | | | | option: use char* for set_string_option_direct()Jan Edmund Lazo2021-02-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "name" param was cast to (const char *). All calls to set_string_option_direct() cast 1st arg from (char *) to (char_u *). Remove these useless casts.
* | | | | eval: ll_range,ll_empty2 members are boolJan Edmund Lazo2021-02-06
| | | | |
* | | | | vim-patch:8.1.2285: padding in structures wastes memoryJan Edmund Lazo2021-02-06
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Padding in structures wastes memory. Solution: Move fields to avoid padding. (Dominique Pelle, closes vim/vim#5202) https://github.com/vim/vim/commit/d6beab0248cdb0b7073e97d98d65de7138cb3386 Skip "ml_line_len" member of "struct memline". Patch v8.1.0579 was not ported.
* | | | vim-patch:8.2.2469: confusing error if :winsize has a wrong argument (#13889)Jan Edmund Lazo2021-02-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Confusing error if :winsize has a wrong argument. Solution: Quote the argument in the error. (closes vim/vim#2523) https://github.com/vim/vim/commit/f5a5116a96b1877c3f44e7bae288fd6603151eb1 Cherry-pick Test_winsize_cmd() from patch v8.2.0243.
* | | | fix(pty): Always use $TERM from the job's env dictJames McCoy2021-02-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before #12937, the only way to specify the `$TERM` for a pty job was through the `TERM` key in the job's opts dict. This was shuttled to the child process throug a special field on the PtyProcess object and injected into the environment after forking. Now that we have a proper way to specify the environment for a job, we can simply ensure that the env dict has a proper `TERM` set and avoid the extra shuttling of data around. This deprecates the use of the `TERM` option, but will still honor it if present, although at a lower priority than a `TERM` present in the env dict. This also fixes #13874 because we're no longer trying to overwrite `TERM` in the env dict with the special pty `term_name`. Doing so raises an internal error because of the existing key which, under certain circumstances, would cause the "hit enter" prompt. However, since the child process had already forked, there was no way for the user to acknowledge the prompt and we would just hang there.
* | | | Merge pull request #13702 from erw7/fix-build_stl_str_hlerw72021-02-06
|\ \ \ \ | | | | | | | | | | buffer.c: fix problem of memory allocation
| * | | | buffer.c: remove useless 'for' loops.erw72021-01-09
| | | | |
| * | | | buffer.c: fix problem of memory allocationerw72021-01-05
| | | | |
* | | | | Merge pull request #12080 from erw7/feature-bracketed-paste-on-termerw72021-02-06
|\ \ \ \ \ | | | | | | | | | | | | terminal: add bracketed pasting feature
| * | | | | Change default for tpf optionerw72021-02-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change the default of tpf to the same value as the default of xterm's disallowedPasteControls, because it may be a security risk.
| * | | | | Add termpastefilter optionerw72021-02-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change to specify a character to be filtered as an option when pasting on the terminal.
| * | | | | Change to filter control characters when pasting a terminal windowerw72021-02-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change to filter the following control characters in the same way as xterm. \x00-\x07, \x0b-\x0c, \x0e-\x1f
| * | | | | Add support for bracketed paste mode in terminal windowserw72021-02-04
| | | | | |
* | | | | | inccommand: preserve extmarks when undoing preview substitutionBjörn Linse2021-02-04
|/ / / / /
* | | | | vim-patch:8.2.2464: using freed memory if window closed in autocommandJan Edmund Lazo2021-02-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Using freed memory if window closed in autocommand. (houyunsong) Solution: Check the window still exists. https://github.com/vim/vim/commit/8ab375706e6712308f8cf7529bcae56684a6f385
* | | | | vim-patch:8.2.2462: Coverity warns for not checking for fseek() errorJan Edmund Lazo2021-02-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Coverity warns for not checking for fseek() error. Solution: Give an error message if fseek() fails. https://github.com/vim/vim/commit/2c363a2e95ee0b366e72063d093d20e025ef4a66
* | | | | vim-patch:8.2.2458: Coverity warns for :retab using freed memoryJan Edmund Lazo2021-02-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Coverity warns for :retab using freed memory. Solution: Use the updated line pointer when moving text properties. https://github.com/vim/vim/commit/0dcd39bad5e5aa70ba8f60cb3fbf0658585f0151 N/A patches for version.c: vim-patch:8.2.2457: Coverity warns for memory leak Problem: Coverity warns for memory leak. Solution: Free memory when out of memory. https://github.com/vim/vim/commit/4dba04256b8a49b201d685217d3d7abc4988f090
* | | | | vim-patch:8.2.2447: 'foldlevel' not applied to folds restored from sessionJan Edmund Lazo2021-02-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: 'foldlevel' not applied to folds restored from session. Solution: Set 'foldlevel' after creaiting the folds. (closes vim/vim#7767) https://github.com/vim/vim/commit/f9547eb6ef02e305203b859d2dcfdae930b9d544
* | | | | vim-patch:8.2.2446: setting 'term' empty has different error if compiled ↵Jan Edmund Lazo2021-02-01
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with GUI Problem: Setting 'term' empty has different error if compiled with GUI. Solution: Insert "else". (closes vim/vim#7766) https://github.com/vim/vim/commit/5daa91162699e4f8b54f9d1caaaab2715038941c N/A patches for version.c: vim-patch:8.2.2437: deprecation warnings with default configuration Problem: Deprecation warnings with default configuration. Solution: Add -Wno-deprecated-declarations. https://github.com/vim/vim/commit/4d8479b335e92a95b09fdee09309ea0df934cb9e vim-patch:8.2.2439: not easy to figure out what packages to get Problem: Not easy to figure out what packages to get when installing Vim on a new Ubuntu system. Solution: Mention explicit commands that are easy to follow. https://github.com/vim/vim/commit/3d2bb8b6f152c0c5056f49bccb350683a9ba2e13 vim-patch:8.2.2442: automatic GUI selection does not check for GTK 3 Problem: Automatic GUI selection does not check for GTK 3. Solution: Make SKIP_GTK3 empty for automatic GUI support. Set SKIP_GTK3 to YES when checking for GTK2. https://github.com/vim/vim/commit/f272ae12ac064856b710046393d5bf9b1670076d vim-patch:8.2.2448: compilation error with Ruby 3.0 Problem: Compilation error with Ruby 3.0. Solution: Adjust #ifdefs and declaration. (Ken Takata, closes vim/vim#7761) https://github.com/vim/vim/commit/9d20daffc296b9eb901fb14bdd83620ea55d440a
* | | | Merge pull request #12937 from jamessan/term-envJames McCoy2021-01-31
|\ \ \ \ | |_|_|/ |/| | |
| * | | Use abort() instead of assert(false) for things that should never happenJames McCoy2021-01-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | assert() is compiled out for release builds, but we don't want to continue running in these impossible situations. This also resolves the "implicit fallthrough" warnings for the asserts in switch cases.
| * | | fix(pty_proc/macOS): Properly set the environment for the childJames McCoy2021-01-31
| | | | | | | | | | | | | | | | | | | | | | | | Binding _NSGetEnviron()'s return value to a local variable and then re-binding that is incorrect. We need to directly update what _NSGetEnviron() refers to.
| * | | Pass environment on to pty processes on WindowsJames McCoy2021-01-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vim-patch:8.2.0239: MS-Windows: 'env' job option does not override existing vars Problem: MS-Windows: 'env' job option does not override existing environment variables. (Tim Pope) Solution: Set the environment variables later. (Yasuhiro Matsumoto, closes vim/vim#5485, closes vim/vim#5608) https://github.com/vim/vim/commit/355757aed6ae2ae5446882570d89f243e4805937 Co-authored-by: erw7 <erw7.github@gmail.com>
| * | | eval/environ: Prefer the last definition of an env varJames McCoy2021-01-31
| | | | | | | | | | | | | | | | | | | | | | | | It's possible for the environment variable block given to nvim to contain multiple definitions for the same env var. In this case, nvim should preserve the last one defined.
| * | | Common handling of required/ignored env varsJames McCoy2021-01-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When starting a pty job, there are certain env vars that we need to either add or remove. Currently, there are two relevant scenarios. * Removing irrelevant env vars on Unix, mostly related to the terminal hosting nvim since they do not apply to a libvterm-hosted terminal. * Adding required env vars for Windows jobs.
| * | | Support specifying "env" option for termopen()James McCoy2021-01-31
| | | | | | | | | | | | | | | | Co-authored-by: erw7 <erw7.github@gmail.com>
| * | | Use dict_T to pass env vars to process spawning codeJames McCoy2021-01-31
| | | | | | | | | | | | | | | | Co-authored-by: Matthieu Coudron <mattator@gmail.com>
* | | | vim-patch:8.2.2430: :vimgrep expands wildcards twice (#13853)Jan Edmund Lazo2021-01-31
|/ / / | | | | | | | | | | | | Problem: :vimgrep expands wildcards twice. Solution: Do not expand wildcards a second time. https://github.com/vim/vim/commit/f8c6a1718007432812184c28495e8d27ee6c0395
* | | version.c: update [ci skip] (#13705)Jan Edmund Lazo2021-01-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vim-patch:8.2.2307: a shell command in the vimrc causes terminal output vim-patch:8.2.2312: build failure with Ruby 3.0 and 32 bits vim-patch:8.2.2326: build error with +eval feature but without +spell vim-patch:8.2.2337: configure test for GTK only says "no" vim-patch:8.2.2346: Codecov reports every little coverage drop vim-patch:8.2.2347: build failure without GUI vim-patch:8.2.2348: no check for modified files after focus gained vim-patch:8.2.2352: if focus lost/gained is received twice code is not ignored vim-patch:8.2.2358: wrong #ifdef for use_xterm_like_mouse() vim-patch:8.2.2383: focus escape sequences are not named vim-patch:8.2.2407: old jumplist code is never used vim-patch:8.2.2408: MinGW: "--preprocessor" flag no longer supported vim-patch:8.2.2431: warning for -fno-strength-reduce with Clang 11 vim-patch:8.2.2432: libvterm tests are executed even when libtool doesn't work
* | | test/old: rewrite method code in test_compiler.vimJan Edmund Lazo2021-01-30
| | | | | | | | | | | | | | | Patch v8.1.1803 and related method patches are not ported yet. Revert this commit when those patches are ported.
* | | vim-patch:8.2.2038: compiler test fails on MS-WindowsJan Edmund Lazo2021-01-30
| | | | | | | | | | | | | | | | | | Problem: Compiler test fails on MS-Windows. Solution: Sort the found compiler plugin names. https://github.com/vim/vim/commit/142f23544c7045b22e56fa6ee35808aceb6342f2
* | | vim-patch:8.2.2037: compiler test depends on list of compiler pluginsJan Edmund Lazo2021-01-30
| | | | | | | | | | | | | | | | | | Problem: Compiler test depends on list of compiler plugins. Solution: Compare with the actual list of compiler plugins. https://github.com/vim/vim/commit/60bc8e7244080b7ead009cfabebc3401f272ddbe
* | | vim-patch:8.2.2425: cursor on invalid line with range and :substituteJan Edmund Lazo2021-01-29
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Cursor on invalid line with range and :substitute. Solution: Do not move the cursor when skipping commands. (closes vim/vim#3434) https://github.com/vim/vim/commit/df2c2988bbaecd28b0fbec8d64327b1bbb005e19 Cherry-pick Test_for_invalid() from patch v8.1.0736.
* | | vim-patch:8.2.2420: too many problems with using all autocommand eventsJan Edmund Lazo2021-01-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Too many problems with using all autocommand events. Solution: Disallow defining an autocommand for all events. https://github.com/vim/vim/commit/9a046fd08bcae319d39a4dbde2be81decee19013 Delete Test_wipe_cbuffer(). Commit dc5f4a3cc2f7f02e1ff4ec2f67eda4fb73e7d89c should have removed it.
* | | vim-patch:8.2.2418: color not changed if ModeMsg highlight is set in InsertEnterJan Edmund Lazo2021-01-28
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Color not changed if ModeMsg highlight is set in InsertEnter autocmd event. (Paul Swanson) Solution: Call highlight_changed() after triggering InsertEnter. (closes vim/vim#7751) https://github.com/vim/vim/commit/2e6cdb91e8dea08301f31bc83188c06112eb7f57
* | | vim-patch:8.2.2412: not all fields in "cstack" are initializedJan Edmund Lazo2021-01-28
| |/ |/| | | | | | | | | | | Problem: Not all fields in "cstack" are initialized which might cause a crash. Solution: Use CLEAR_FIELD(). https://github.com/vim/vim/commit/ce0370d9e67df80c62ff033aa8ca2dbe86841de9
* | Merge pull request #13784 from runiq/get_extmark_by_id-limit_breakThomas Vigouroux2021-01-28
|\ \ | | | | | | doc: remove nvim_buf_get_extmark_by_id limit opt
| * | doc: remove nvim_buf_get_extmark_by_id limit optPatrice Peterson2021-01-18
| | | | | | | | | | | | Passing any key but `details` in the opts results in an error.
* | | lintchentau2021-01-26
| | |
* | | lua: complete methods in metatablesBjörn Linse2021-01-26
| | |
* | | Don't show entire context when completingTony Chen2021-01-26
| | |
* | | feat: add completion to ':lua'TJ DeVries2021-01-26
| | |
* | | vim-patch:8.2.2402: some filetypes not detectedJan Edmund Lazo2021-01-24
| | | | | | | | | | | | | | | | | | Problem: Some filetypes not detected. Solution: Detect Ruby Signature and Puppet related files. (Doug Kearns) https://github.com/vim/vim/commit/8323cab31c3120a7f80cf3271a506a30ec04d99e
* | | vim-patch:8.2.2399: fold test fails in wide terminalJan Edmund Lazo2021-01-24
| | | | | | | | | | | | | | | | | | Problem: Fold test fails in wide terminal. Solution: Adjust the test. (Dominique Pelle, closes vim/vim#7731, closes vim/vim#7739) https://github.com/vim/vim/commit/7cf0c114d690c91ac88c92a1a6f1b1935cb6410f
* | | vim-patch:8.2.2392: fennel filetype not recognizedJan Edmund Lazo2021-01-24
| | | | | | | | | | | | | | | | | | Problem: Fennel filetype not recognized. Solution: Detect with pattern and hashbang. (Chinmay Dalal, closes vim/vim#7729) https://github.com/vim/vim/commit/402115f1c2b4d0704a822206f2e6e931e721c129
* | | Merge pull request #13807 from spywhere/min-size-auto-signMatthieu Coudron2021-01-23
|\ \ \ | | | | | | | | Auto sign column with minimum size support
| * | | opt: address linting issues (#13783)Sirisak Lueangsaksri2021-01-20
| | | |
| * | | opt: better handling number bounds (#13783)Sirisak Lueangsaksri2021-01-20
| | | |