aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
Commit message (Collapse)AuthorAge
...
* vim-patch:7.4.1088watiko2016-02-01
| | | | | | | | Problem: Coverity warns for uninitialized variables. Only one is an actual problem. Solution: Move the conditions. Don't use endpos if handling an error. https://github.com/vim/vim/commit/7ae4fbca552c972eb3645ece02a2807e517610d7
* vim-patch:7.4.1087watiko2016-02-01
| | | | | | | | Problem: CTRL-A and CTRL-X do not work properly with blockwise visual selection if there is a mix of Tab and spaces. Solution: Add OP_NR_ADD and OP_NR_SUB. (Hirohito Higashi) https://github.com/vim/vim/commit/d79e55016cf8268cee935f1ac3b5b28712d1399e
* vim-patch:7.4.1085watiko2016-02-01
| | | | | | | Problem: The CTRL-A and CTRL-X commands do not update the '[ and '] marks. Solution: (Yukihiro Nakadaira) https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
* vim-patch:7.4.1076watiko2016-02-01
| | | | | | | Problem: CTRL-A does not work well in right-left mode. Solution: Remove reversing the line, add a test. (Hirohito Higashi) https://github.com/vim/vim/commit/6a3c8aff0439c8406082760c54b26e00ff19a90c
* vim-patch:7.4.1027watiko2016-02-01
| | | | | | | Problem: No support for binary numbers. Solution: Add "bin" to nrformats. (Jason Schulz) https://github.com/vim/vim/commit/887c1fea4a114e7170091942d0446c8882701b5b
* vim-patch:7.4.823watiko2016-02-01
| | | | | | | Problem: Cursor moves after CTRL-A on alphabetic character. Solution: (Hirohito Higashi, test by Christian Brabandt) https://github.com/vim/vim/commit/25c2f6783a9d5f15e062bd5b085abe7deb121152
* vim-patch:7.4.806watiko2016-02-01
| | | | | | | | Problem: CTRL-A in Visual mode doesn't work properly with "alpha" in 'nrformat'. Solution: Make it work. (Christian Brabandt) https://github.com/vim/vim/commit/cc218ab3caf983a0dcd3399beb8e1ecfcf0dd25d
* vim-patch:7.4.782watiko2016-02-01
| | | | | | | Problem: Still a few problems with CTRL-A and CTRL-X in Visual mode. Solution: Fix the reported problems. (Christian Brabandt) https://github.com/vim/vim/commit/5d1bc78a2b9fbe3e3112afcde7c80eb19d5989f4
* vim-patch:7.4.780watiko2016-02-01
| | | | | | | | Problem: Compiler complains about uninitialized variable and clobbered variables. Solution: Add Initialization. Make variables static. https://github.com/vim/vim/commit/1db43b1145fe466b5d41af6744a08083983de3a9
* vim-patch:7.4.779watiko2016-02-01
| | | | | | | | Problem: Using CTRL-A in a line without a number moves the cursor. May cause a crash when at the start of the line. (Urtica Dioica) Solution: Do not move the cursor if no number was changed. https://github.com/vim/vim/commit/3ec326198029d5a59413b3b8b33dbc9c06c4f28b
* vim-patch:7.4.778watiko2016-02-01
| | | | | | | Problem: Coverity warns for uninitialized variable. Solution: Change condition of assignment. https://github.com/vim/vim/commit/ae2fe73abc954b8fd3dbd7994daa8e31e6690bd0
* vim-patch:7.4.765watiko2016-02-01
| | | | | | | Problem: CTRL-A and CTRL-X in Visual mode do not always work well. Solution: Improvements for increment and decrement. (Christian Brabandt) https://github.com/vim/vim/commit/9bb1930af908338b68588e988be9601ad144af07
* vim-patch:7.4.754watiko2016-02-01
| | | | | | | | Problem: Using CTRL-A in Visual mode does not work well. (Gary Johnson) Solution: Make it increment all numbers in the Visual area. (Christian Brabandt) https://github.com/vim/vim/commit/3a304b23823b089e499063e8211c5695d049f3ba
* Merge pull request #4049 from watiko/vim-7.4.616Justin M. Keyes2016-01-21
|\ | | | | vim-patch:7.4.616
| * vim-patch:7.4.616watiko2016-01-19
| | | | | | | | | | | | | | Problem: Cannot insert a tab in front of a block. Solution: Correctly compute aop->start. (Christian Brabandt) https://github.com/vim/vim/commit/f2c03d7301d35590a20cc43431950acc3a2f6036
* | Fix lint issuesJason Schulz2016-01-15
| |
* | Add support for binary numbersJason Schulz2016-01-15
|/
* Merge pull request #3903 from justinmk/vim-7.4.605Justin M. Keyes2016-01-01
|\ | | | | vim-patch:7.4.605
| * file_pat_to_reg_pat, buflist_findpat: const paramsJustin M. Keyes2016-01-01
| | | | | | | | | | file_pat_to_reg_pat() and buflist_findpat() do not modify the data of these parameters.
| * vim-patch:7.4.605Justin M. Keyes2015-12-30
| | | | | | | | | | | | | | | | Problem: The # register is not writable, it cannot be restored after jumping around. Solution: Make the # register writable. (Marcin Szamotulski) https://github.com/vim/vim/commit/3b3a9498d1eab3c28c524cce115160528a9a9297
* | normal: use oap->motion_type also to represent block motion typeBjörn Linse2016-01-01
|/ | | | | Previously oap->motion_type == MCHAR would be blockwise if oap->block_mode was set.
* vim-patch:7.4.803Johan Klokkhammer Helsing2015-12-13
| | | | | | | Problem: C indent does not support C11 raw strings. (Mark Lodato) Solution: Do not change indent inside the raw string. https://github.com/vim/vim/commit/f7bb86dc593913d055e4cce16cec43f6271adda3
* Merge #3443 'vim-patch:7.4.{785,795,898}'Justin M. Keyes2015-12-13
|\
| * vim-patch:7.4.785Johan Klokkhammer Helsing2015-11-22
| | | | | | | | | | | | | | | | Problem: On some systems automatically adding the missing EOL causes problems. Setting 'binary' has too many side effects. Solution: Add the 'fixeol' option, default on. (Pavel Samarkin) https://github.com/vim/vim/commit/34d72d4b6c1a2b04a214d8a49b7d22c97bc7a8bc
* | src/*: Remove `VIM - Vi improved ...` headerMichael Reed2015-11-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Regarding the individual items in the header: `Vim - Vi improved by Bram Moolenar` Bram Moolenar is already mentioned throughout the documentation, as well as the intro screen. `:help uganda` It's already shown to all users who don't use `shortmess+=I` upon starting nvim, and is already placed prominently in help.txt, i.e., `:help` run with no arguments. `:help credits` Already mentioned near the top of help.txt. `README.md` Already mentioned in develop.txt.
* | src: README.txt -> README.mdMichael Reed2015-11-23
|/ | | | | The former no longer exists in this repo; see the top of src/nvim/README.md.
* *: Fix lint errors found in new code in previously ignored filesZyX2015-10-08
|
* *: Fix problems with clang+asan Release buildZyX2015-10-08
|
* eval,functests: Reference all additional_* items created by ShaDaZyX2015-10-08
|
* ops: Fix access to unsaved register when iterating over registersZyX2015-10-08
|
* ops: Fix “conditional … depends on unitialized …” error in op_yank_regZyX2015-10-08
|
* shada: Fix memory leak when reading registers from ShaDa fileZyX2015-10-08
| | | | | Occures once register from ShaDa file overwrites non-empty register in the current instance.
* shada,functests: Add tests for merging ShaDa dataZyX2015-10-08
|
* shada: When reading marks or registers, free items when set failsZyX2015-10-08
|
* *: Make ShaDa code use VimL values for additional_\* dataZyX2015-10-08
|
* shada: Add support for merging everything like described in the docZyX2015-10-08
|
* Replace references to viminfo in various placesZyX2015-10-08
|
* viminfo: First version of ShaDa file dumpingZyX2015-10-08
| | | | | | | | | | | | | | | | | | | | What works: 1. ShaDa file dumping: header, registers, jump list, history, search patterns, substitute strings, variables. 2. ShaDa file reading: registers, global marks, variables. Most was not tested. TODO: 1. Merging. 2. Reading history, local marks, jump and buffer lists. 3. Documentation update. 4. Converting some data from &encoding. 5. Safer variant of dumping viminfo (dump to temporary file then rename). 6. Removing old viminfo code (currently masked with `#if 0` in a ShaDa file for reference).
* clipboard: avoid clipboard during :global. #2809Felipe Morales2015-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is equivalent to patches 7.4.396, 7.4.445 and 7.4.598. vim-patch:7.4.396 Problem: When 'clipboard' is "unnamed", :g/pat/d is very slow. (Praful) Solution: Only set the clipboard after the last delete. (Christian Brabandt) https://github.com/vim/vim/commit/1f285eb49a709e00552f7bef7e74efff5ae79026 vim-patch:7.4.445 Problem: Clipboard may be cleared on startup. Solution: Set clip_did_set_selection to -1 during startup. (Christian Brabandt) https://github.com/vim/vim/commit/1a19d37d90f037c09183ba68fdddf70ab8ee179a vim-patch:7.4.598 Problem: ":tabdo windo echo 'hi'" causes "* register not to be changed. (Salman Halim) Solution: Change how clip_did_set_selection is used and add clipboard_needs_update and global_change_count. (Christian Brabandt) https://github.com/vim/vim/commit/af6a579263a688f30bfbbee72b28d08cc7e0f3d4 Co-Author: @bfredl
* clipboard: support clipboard=unnamedplus,unnamedBjörn Linse2015-08-07
|
* clipboard: fixup inconsequential yet embarrassing mixupBjörn Linse2015-08-06
|
* clipboard: handle middle-click paste correctly.Björn Linse2015-07-20
| | | | | Also handle clipboard errors more like vim: paste from unnamed register if clipboard provider fails.
* clipboard: don't overwrite before pasting in visual mode. #2945Björn Linse2015-07-04
| | | | | This occured when clipboard=unnamedplus and doing "+p in visual mode. Fixes #2942.
* clipboard: avoid redundant error message on `clipboard_get` failure .Björn Linse2015-06-25
| | | | | | Fixes #2712 Helped-By: Michael Reed <m.reed@mykolab.com>
* 'cpoptions': Remove "j" flagDavid Bürgin2015-05-25
|
* vim-patch:7.4.594 #2654David Bürgin2015-05-16
| | | | | | | | | | | Problem: Using a block delete while 'breakindent' is set does not work properly. Solution: Use "line" instead of "prev_pend" as the first argument to lbr_chartabsize_adv(). (Hirohito Higashi) https://github.com/vim/vim/commit/v7-4-594 See https://groups.google.com/d/msg/vim_dev/B8k0AVlqMUU/qKXeY8srpGcJ
* Remove char_u: message:smsg()Michael Reed2015-05-13
|
* Enable -Wconversion: normal.c.Eliseo Martínez2015-04-27
| | | | | | | | | | | | | | | | | | | | | | | | Refactor summary: - extern int opcount --> extern long opcount - bool find_decl(..., int len, ...) --> bool find_decl(..., size_t len, ...) * int find_ident_under_cursor(...) --> size_t find_ident_under_cursor(...) - int find_ident_at_pos(...) --> size_t find_ident_at_pos(...) - int modify_fname(..., int *usedlen, ..., int *fnamelen) --> int modify_fname(..., size_t *usedlen, ..., size_t *fnamelen) * char_u *eval_vars(..., int *usedlen, ...) --> char_u *eval_vars(..., size_t *usedlen, ...) - int find_cmdline_var(..., int *usedlen) --> ssize_t find_cmdline_var(..., size_t *usedlen) - static char_u *repl_cmdline(..., int srclen, ...) --> static char_u *repl_cmdline(..., size_t srclen, ...) - bool get_visual_text(..., int *lenp) --> bool get_visual_text(..., size_t *lenp) * char_u *find_file_name_in_path(..., int len, ...) --> char_u *find_file_name_in_path(..., size_t len, ...) - static char_u *eval_includeexpr(..., int len) --> static char_u *eval_includeexpr(..., size_t len) - char_u *find_file_in_path(..., int len, ...) --> char_u *find_file_in_path(..., size_t len, ...) * char_u *find_file_in_path_option(..., int len, ...) --> char_u *find_file_in_path_option(..., size_t len, ...) - char_u *find_directory_in_path(..., int len, ...) --> char_u *find_directory_in_path(..., size_t len, ...) * int spell_move_to(...) --> size_t spell_move_to(...) - int spell_check(...) --> size_t spell_check(...) - static int spell_bad_len --> static size_t spell_bad_len - void find_pattern_in_path(..., int len, ...) --> void find_pattern_in_path(..., size_t len, ...) Helped-by: Justin M. Keyes <justinkz@gmail.com>
* Improve comments and fix ascii_* attributesFelipe Oliveira Carvalho2015-04-24
|
* Replace vim_isspace() with ascii_isspace() defined in ascii.hFelipe Oliveira Carvalho2015-04-24
|