summaryrefslogtreecommitdiff
path: root/src/ops.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 7.4.783v7.4.783Bram Moolenaar2015-07-171-16/+16
| | | | | Problem: copy_chars() and copy_spaces() are inefficient. Solution: Use memset() instead. (Dominique Pelle)
* patch 7.4.782v7.4.782Bram Moolenaar2015-07-171-14/+73
| | | | | Problem: Still a few problems with CTRL-A and CTRL-X in Visual mode. Solution: Fix the reported problems. (Christian Brabandt)
* patch 7.4.780v7.4.780Bram Moolenaar2015-07-121-1/+1
| | | | | | Problem: Compiler complains about uninitialized variable and clobbered variables. Solution: Add Initialization. Make variables static.
* patch 7.4.779v7.4.779Bram Moolenaar2015-07-121-1/+5
| | | | | | 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.
* patch 7.4.778v7.4.778Bram Moolenaar2015-07-101-3/+3
| | | | | Problem: Coverity warns for uninitialized variable. Solution: Change condition of assignment.
* patch 7.4.765v7.4.765Bram Moolenaar2015-07-031-24/+46
| | | | | Problem: CTRL-A and CTRL-X in Visual mode do not always work well. Solution: Improvements for increment and decrement. (Christian Brabandt)
* patch 7.4.754v7.4.754Bram Moolenaar2015-06-251-187/+244
| | | | | | 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)
* patch 7.4.743v7.4.743Bram Moolenaar2015-06-191-2/+11
| | | | | Problem: "p" in Visual mode causes an unexpected line split. Solution: Advance the cursor first. (Yukihiro Nakadaira)
* patch 7.4.734v7.4.734Bram Moolenaar2015-06-091-37/+8
| | | | | | Problem: ml_get error when using "p" in a Visual selection in the last line. Solution: Change the behavior at the last line. (Yukihiro Nakadaira)
* patch 7.4.725v7.4.725Bram Moolenaar2015-05-041-0/+8
| | | | | Problem: ":call setreg('"', [])" reports an internal error. Solution: Make the register empty. (Yasuhiro Matsumoto)
* updated for version 7.4.616v7.4.616Bram Moolenaar2015-02-031-6/+17
| | | | | Problem: Cannot insert a tab in front of a block. Solution: Correctly compute aop->start. (Christian Brabandt)
* updated for version 7.4.605v7.4.605Bram Moolenaar2015-01-271-2/+24
| | | | | | Problem: The # register is not writable, it cannot be restored after jumping around. Solution: Make the # register writable. (Marcin Szamotulski)
* updated for version 7.4.594v7.4.594Bram Moolenaar2015-01-271-4/+1
| | | | | | | 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)
* updated for version 7.4.581v7.4.581Bram Moolenaar2015-01-181-2/+3
| | | | | Problem: Compiler warnings for unitinialized variables. (John Little) Solution: Initialize the variables.
* updated for version 7.4.560v7.4.560Bram Moolenaar2014-12-171-16/+48
| | | | | Problem: Memory leak using :wviminfo. Issue 296. Solution: Free memory when needed. (idea by Christian Brabandt)
* updated for version 7.4.559v7.4.559Bram Moolenaar2014-12-171-6/+6
| | | | | | Problem: Appending a block in the middle of a tab does not work correctly when virtualedit is set. Solution: Decrement spaces and count, don't reset them. (James McCoy)
* updated for version 7.4.521v7.4.521Bram Moolenaar2014-11-191-0/+3
| | | | | | Problem: When using "vep" a mark is moved to the next line. (Maxi Padulo, Issue 283) Solution: Decrement the line number. (Christian Brabandt)
* updated for version 7.4.408v7.4.408Bram Moolenaar2014-08-161-0/+20
| | | | | Problem: Visual block insert breaks a multi-byte character. Solution: Calculate the position properly. (Yasuhiro Matsumoto)
* updated for version 7.4.396v7.4.396Bram Moolenaar2014-08-061-4/+11
| | | | | Problem: When 'clipboard' is "unnamed", :g/pat/d is very slow. (Praful) Solution: Only set the clipboard after the last delete. (Christian Brabandt)
* updated for version 7.4.338v7.4.338Bram Moolenaar2014-06-251-8/+18
| | | | | | Problem: Cannot wrap lines taking indent into account. Solution: Add the 'breakindent' option. (many authors, final improvements by Christian Brabandt)
* updated for version 7.4.331v7.4.331Bram Moolenaar2014-06-171-0/+2
| | | | | Problem: Relative numbering not updated after a linewise yank. Issue 235. Solution: Redraw after the yank. (Christian Brabandt)
* updated for version 7.4.271v7.4.271Bram Moolenaar2014-04-291-1/+1
| | | | | Problem: Compiler warning on 64 bit windows. Solution: Add type cast. (Mike Williams)
* updated for version 7.4.267v7.4.267Bram Moolenaar2014-04-291-9/+15
| | | | | Problem: The '[ mark is in the wrong position after "gq". (Ingo Karkat) Solution: Add the setmark argument to do_join(). (Christian Brabandt)
* updated for version 7.4.257v7.4.257Bram Moolenaar2014-04-121-1/+1
| | | | | Problem: Compiler warning, possibly for mismatch in parameter name. Solution: Rename the parameter in the declaration.
* updated for version 7.4.243v7.4.243Bram Moolenaar2014-04-021-66/+158
| | | | | Problem: Cannot use setreg() to add text that includes a NUL. Solution: Make setreg() accept a list.
* updated for version 7.4.242v7.4.242Bram Moolenaar2014-04-021-13/+62
| | | | | | Problem: getreg() does not distinguish between a NL used for a line break and a NL used for a NUL character. Solution: Add another argument to return a list. (ZyX)
* updated for version 7.4.212v7.4.212Bram Moolenaar2014-03-231-157/+20
| | | | | | Problem: Now that the +visual feature is always enabled the #ifdefs for it are not useful. Solution: Remove the checks for FEAT_VISUAL.
* updated for version 7.4.210v7.4.210Bram Moolenaar2014-03-191-2/+18
| | | | | | Problem: Visual block mode plus virtual edit doesn't work well with tabs. (Liang Li) Solution: Take coladd into account. (Christian Brabandt)
* updated for version 7.4.186v7.4.186Bram Moolenaar2014-02-221-5/+5
| | | | | | | Problem: Insert in Visual mode sometimes gives incorrect results. (Dominique Pelle) Solution: Remember the original insert start position. (Christian Brabandt, Dominique Pelle)
* updated for version 7.4.178v7.4.178Bram Moolenaar2014-02-111-0/+10
| | | | | Problem: The J command does not update '[ and '] marks. (William Gardner) Solution: Set the marks. (Christian Brabandt)
* updated for version 7.4.145v7.4.145Bram Moolenaar2014-01-141-1/+3
| | | | | | Problem: getregtype() does not return zero for unknown register. Solution: Adjust documention: return empty string for unknown register. Check the register name to be valid. (Yukihiro Nakadaira)
* updated for version 7.4.099v7.4.099Bram Moolenaar2013-11-211-1/+1
| | | | | | Problem: Append in blockwise Visual mode with "$" is wrong. Solution: After "$" don't use the code that checks if the cursor was moved. (Hirohito Higashi, Ken Takata)
* updated for version 7.4.097v7.4.097Bram Moolenaar2013-11-211-0/+4
| | | | | Problem: Unexpected behavior change related to 'virtualedit'. (Ingo Karkat) Solution: Update the valid cursor position. (Christian Brabandt)
* updated for version 7.4.087v7.4.087Bram Moolenaar2013-11-111-1/+2
| | | | | Problem: Compiler warning on 64 bit Windows systems. Solution: Fix type cast. (Mike Williams)
* updated for version 7.4.085v7.4.085Bram Moolenaar2013-11-111-0/+25
| | | | | | | Problem: When inserting text in Visual block mode and moving the cursor the wrong text gets repeated in other lines. Solution: Use the '[ mark to find the start of the actually inserted text. (Christian Brabandt)
* updated for version 7.4.069v7.4.069Bram Moolenaar2013-11-051-3/+4
| | | | | | | Problem: Cannot right shift lines starting with #. Solution: Allow the right shift when 'cino' contains #N with N > 0. (Christian Brabandt) Refactor parsing 'cino', store the values in the buffer.
* updated for version 7.4.064v7.4.064Bram Moolenaar2013-11-041-12/+35
| | | | | | | Problem: When replacing a character in Visual block mode, entering a CR does not cause a repeated line break. Solution: Recognize the situation and repeat the line break. (Christian Brabandt)
* updated for version 7.4.058v7.4.058Bram Moolenaar2013-11-021-2/+2
| | | | | Problem: Warnings on 64 bit Windows. Solution: Add type casts. (Mike Williams)
* updated for version 7.4.052v7.4.052Bram Moolenaar2013-10-061-2/+16
| | | | | | | | Problem: With 'fo' set to "a2" inserting a space in the first column may cause the cursor to jump to the previous line. Solution: Handle the case when there is no comment leader properly. (Tor Perkins) Also fix that cursor is in the wrong place when spaces get replaced with a Tab.
* updated for version 7.4.041v7.4.041Bram Moolenaar2013-09-251-3/+4
| | | | | | Problem: Visual selection does not remain after being copied over. (Axel Bender) Solution: Move when VIsual_active is reset. (Christian Brabandt)
* updated for version 7.4.034v7.4.034Bram Moolenaar2013-09-221-17/+34
| | | | | Problem: Using "p" in Visual block mode only changes the first line. Solution: Repeat the put in all text in the block. (Christian Brabandt)
* updated for version 7.4b.020v7.4b.020Bram Moolenaar2013-08-091-1/+6
| | | | | Problem: "g~ap" changes first character of next paragraph. (Manuel Ortega) Solution: Avoid subtracting (0 - 1) from todo. (Mike Williams)
* updated for version 7.4a.047v7.4a.047Bram Moolenaar2013-07-281-1/+1
| | | | | Problem: Some comments are not so nice. Solution: Change the comments.
* updated for version 7.4a.017v7.4a.017Bram Moolenaar2013-07-131-0/+4
| | | | | | Problem: When 'foldmethod' is "indent", using ">>" on a line just above a fold makes the cursor line folded. (Evan Laforge) Solution: Call foldOpenCursor(). (Christian Brabandt)
* updated for version 7.3.1293v7.3.1293Bram Moolenaar2013-07-031-1/+1
| | | | | Problem: Put in empty buffer cannot be undone. Solution: Save one more line for undo. (Ozaki)
* updated for version 7.3.1270v7.3.1270Bram Moolenaar2013-06-291-1/+3
| | | | | Problem: Using "Vp" in an empty buffer can't be undone. (Hauke Petersen) Solution: Save one line in an empty buffer. (Christian Brabandt)
* updated for version 7.3.925v7.3.925Bram Moolenaar2013-05-061-1/+1
| | | | | Problem: Typos in source files. Solution: Fix the typos. (Ken Takata)
* updated for version 7.3.856v7.3.856Bram Moolenaar2013-03-131-0/+13
| | | | | Problem: When calling system() multi-byte clipboard contents is garbled. Solution: Save and restore the clipboard contents. (Yukihiro Nakadaira)
* updated for version 7.3.853v7.3.853Bram Moolenaar2013-03-071-1/+2
| | | | | | Problem: Using "ra" in multiple lines on multi-byte characters leaves a few characters not replaced. Solution: Adjust the end column only in the last line. (Yasuhiro Matsumoto)
* updated for version 7.3.852v7.3.852Bram Moolenaar2013-03-071-2/+19
| | | | | | Problem: system() breaks clipboard text. (Yukihiro Nakadaira) Solution: Use Xutf8TextPropertyToTextList(). (Christian Brabandt) Also do not put the text in the clip buffer if conversion fails.