aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
Commit message (Collapse)AuthorAge
...
* vim-patch:8.1.1342: using freed memory when joining line with text propertyJan Edmund Lazo2019-06-25
| | | | | | Problem: Using freed memory when joining line with text property. Solution: Use already computed length. https://github.com/vim/vim/commit/787880a86dbcb79cdf6e8241b1d99ac4a7acbc09
* ops: refactor swapchar() to return boolJan Edmund Lazo2019-06-23
|
* vim-patch:8.1.0125: virtual edit replace with multi-byte fails at end of lineJan Edmund Lazo2019-06-23
| | | | | | | | | Problem: Virtual edit replace with multi-byte fails at end of line. (Lukas Werling) Solution: use ins_char() to add the character. (Christian Brabandt, closes vim/vim#3114) Rename PCHAR() to PBYTE() to avoid mistakes like this. https://github.com/vim/vim/commit/630afe889a2a02b367ea8eaaa48e66ed81e77ff3
* lintJan Edmund Lazo2019-06-01
|
* vim-patch:8.1.1000: indenting is offJan Edmund Lazo2019-06-01
| | | | | | | Problem: Indenting is off. Solution: Make indenting consistent and update comments. (Ozaki Kiichi, closes vim/vim#4079) https://github.com/vim/vim/commit/fd731b0e31df9f167098c4a77ff894fea6cb7f5c
* vim-patch:8.1.0020: cannot tell whether a register is executing or recordingJan Edmund Lazo2019-05-26
| | | | | | | | | Problem: Cannot tell whether a register is being used for executing or recording. Solution: Add reg_executing() and reg_recording(). (Hirohito Higashi, closes vim/vim#2745) Rename the global variables for consistency. Store the register name in reg_executing. https://github.com/vim/vim/commit/0b6d911e5de1a1c10a23d4c2ee1b0275c474a2dd
* vim-patch:8.0.1496: VIM_CLEAR()Justin M. Keyes2019-05-25
| | | | | | | | Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629) vim-patch:8.0.1481
* lintJan Edmund Lazo2019-04-30
|
* clipboard: setreg("*") with clipboard=unnamed #9954Justin M. Keyes2019-04-28
| | | | Helped-by: Björn Linse <bjorn.linse@gmail.com> fix #5646
* ops: use ARRAY_SIZE macro for opchars array lengthJan Edmund Lazo2019-04-10
|
* vim-patch:8.0.1411: reading invalid memory with CTRL-W :Jan Edmund Lazo2019-04-10
| | | | | | Problem: Reading invalid memory with CTRL-W :. Solution: Correct the command characters. (closes vim/vim#2469) https://github.com/vim/vim/commit/2efb323e875d2852f63e41c40641760d1d6b069f
* lintJan Edmund Lazo2019-04-02
|
* vim-patch:8.1.0118: duplicate error message for put commandJan Edmund Lazo2019-04-01
| | | | | | Problem: Duplicate error message for put command. Solution: Check return value of u_save(). (Jason Franklin) https://github.com/vim/vim/commit/f52f9ea8f5fb3df51a308c56f2bf66f735ef3ca7
* vim-patch:8.0.0681: unnamed register only contains the last deleted textJan Edmund Lazo2019-04-01
| | | | | | | Problem: Unnamed register only contains the last deleted text when appending deleted text to a register. (Wolfgang Jeltsch) Solution: Only set y_previous when not using y_append. (Christian Brabandt) https://github.com/vim/vim/commit/18d90b95c49d9ff1c635dd762864022aab8e71f1
* vim-patch:8.1.0671: cursor in wrong column after auto-format #9729Jan Edmund Lazo2019-03-14
| | | | | Problem: Cursor in the wrong column after auto-formatting. Solution: Check for deleting more spaces than adding. (closes vim/vim#3748) https://github.com/vim/vim/commit/e1e714ef0d1f4bb8b1712795e9106e3b4ff4c7bd
* TextYankPost: add v:event["inclusive"] #9717Justin M. Keyes2019-03-13
|
* ops.c: do_join expects `count` of 2 or greater #6855Zach Gleason2019-03-02
| | | | | | test_normal.vim fails if we assert >= 2, so we only check >= 1. That at least avoids invalid pointers. TEST_FILE=test_normal.res make oldtest
* cleanup: remove legacy `enc_dbcs` global #9660Justin M. Keyes2019-03-02
|
* ui: implement ext_messagesBjörn Linse2019-02-10
| | | | Co-Author: Dongdong Zhou <dzhou121@gmail.com>
* build: enable -WshadowJustin M. Keyes2019-01-02
| | | | | | | | | | Note about shada.c: - shada_read_next_item_start was intentionally shadowing `unpacked` and `i` because many of the macros (e.g. ADDITIONAL_KEY) implicitly depended on those variable names. - Macros were changed to parameterize `unpacked` (but not `i`). Macros like CLEAR_GA_AND_ERROR_OUT do control-flow (goto), so any other approach is messy.
* vim-patch:8.0.1779: deleting in a block selection causes problems (#9099)Jan Edmund Lazo2018-10-09
| | | | | | Problem: Deleting in a block selection causes problems. Solution: Check the length of the line before adding bd.textcol and bd.textlen. (Christian Brabandt, closes vim/vim#2825) https://github.com/vim/vim/commit/35e802e713382d7e76232ad344af7dcd577e43de
* vim-patch:8.0.1374: CTRL-A does not work with an empty lineJan Edmund Lazo2018-09-16
| | | | | | Problem: CTRL-A does not work with an empty line. (Alex) Solution: Decrement the end only once. (Hirohito Higashi, closes vim/vim#2387) https://github.com/vim/vim/commit/5fe6bdf858a7f2f288d599ffb5efb3c08449c817
* Remove has_mbytes local to lines changed in parent commitZviRackover2018-09-09
|
* Refactor: Remove occurences of mb_char2bytesZviRackover2018-09-09
|
* Merge #8863 'refactor: Remove mb_head_off() 'Justin M. Keyes2018-08-28
|\
| * lint: cleanup after parent commitsZviRackover2018-08-16
| |
| * Remove has_mbyte from lines near changes in parent commitZviRackover2018-08-16
| |
| * Remove occurences of mb_head_offZviRackover2018-08-15
| |
* | vim-patch:8.0.1682: auto indenting breaks inserting a block (#8892)Jan Edmund Lazo2018-08-23
| | | | | | | | | | | | Problem: Auto indenting breaks inserting a block. Solution: Do not check for cursor movement if indent was changed. (Christian Brabandt, closes vim/vim#2778) https://github.com/vim/vim/commit/8c87a2b1fec85e4aac33f71586ac1514536fc66b
* | lintJan Edmund Lazo2018-08-23
| |
* | vim-patch:8.0.1044: warning for uninitialized variableJan Edmund Lazo2018-08-23
| | | | | | | | | | | | Problem: Warning for uninitialized variable. (John Marriott) Solution: Initialize ind_pre. https://github.com/vim/vim/commit/2254a8ad0cb596a0a0863b1af92353f018c0b355
* | vim-patch:8.0.1043: warning for uninitialized variableJan Edmund Lazo2018-08-23
| | | | | | | | | | | | Problem: Warning for uninitialized variable. (John Marriott) Solution: Move code to check indent inside "if". https://github.com/vim/vim/commit/4ec86ddd77a89766e42bd0a6cfcf10af4c3d03b2
* | vim-patch:8.0.1041: bogus characters when indenting during visual-block appendJan Edmund Lazo2018-08-23
| | | | | | | | | | | | | | Problem: Bogus characters appear when indenting kicks in while doing a visual-block append. Solution: Recompute when indenting is done. (Christian Brabandt) https://github.com/vim/vim/commit/e2e69e48134cbfdedea7802810932f8592705024
* | lintJan Edmund Lazo2018-08-17
| |
* | ops: refactor get_spec_reg()Jan Edmund Lazo2018-08-16
| | | | | | | | | | | | Return value is bool. errmsg (param) is bool in here and in getaltfname(). allocated (param) is bool.
* | vim-patch:8.0.1787: cannot insert the whole cursor lineJan Edmund Lazo2018-08-16
|/ | | | | | Problem: Cannot insert the whole cursor line. Solution: Make CTRL-R CTRL-L work. (Andy Massimino, closes vim/vim#2857) https://github.com/vim/vim/commit/e2c8d8392684a940cc5608acc73ff47486bd7b92
* Merge #8744 from janlazo/vim-8.0.0890Justin M. Keyes2018-08-08
|\
| * misc: fixpos in del_char() is boolJan Edmund Lazo2018-08-07
| |
| * memline: copy in ml_replace() is boolJan Edmund Lazo2018-08-07
| |
| * ops: is_del in block_prep() is boolJan Edmund Lazo2018-08-07
| |
| * ops: add const to shift_block() variablesJan Edmund Lazo2018-08-07
| |
| * vim-patch:8.0.0879: crash when shifting with huge numberJan Edmund Lazo2018-08-06
| | | | | | | | | | | | Problem: Crash when shifting with huge number. Solution: Check for overflow. (Dominique Pelle, closes vim/vim#1945) https://github.com/vim/vim/commit/bae5a17a738d1a3b5c51d9aa5d99e228d3911955
* | style: fixing minor issues noted in code review.ZviRackover2018-08-06
| |
* | Remove all occurences of the mb_ptr2char macroZviRackover2018-08-06
|/ | | | | | | First step towards implemening issue #7401. The same can be done for all deprecated mb_ functions in follow-up patches.
* lintJan Edmund Lazo2018-08-06
|
* globals: did_ai is boolJan Edmund Lazo2018-08-06
|
* globals: can_si is boolJan Edmund Lazo2018-08-06
|
* globals: virtual_op is TriStateJan Edmund Lazo2018-08-01
|
* vim-patch:8.0.0727: message about what register to yank into is not translatedJan Edmund Lazo2018-07-17
| | | | | | | Problem: Message about what register to yank into is not translated. (LemonBoy) Solution: Add _(). https://github.com/vim/vim/commit/60d0e97497f1104b31f711072ef174af533b61fa
* vim-patch:8.0.0724: the message for yanking doesn't indicate the registerJan Edmund Lazo2018-07-17
| | | | | | | Problem: The message for yanking doesn't indicate the register. Solution: Show the register name in the "N lines yanked" message. (Lemonboy, closes vim/vim#1803, closes vim/vim#1809) https://github.com/vim/vim/commit/e45deb79978677cb41f1477ba4140bccff658fd1