aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/undo.c
Commit message (Collapse)AuthorAge
* Remove excess <stdint.h>Jan Edmund Lazo2019-09-11
|
* vim-patch:8.1.1498: ":write" increments b:changedtick even though nothing ↵Justin M. Keyes2019-09-04
| | | | | | | | | changed Problem: ":write" increments b:changedtick even though nothing changed. (Daniel Hahler) Solution: Only increment b:changedtick if the modified flag is reset. https://github.com/vim/vim/commit/c024b4667875e5bc6fd0ed791530e33c3161bff7
* vim-patch:8.0.0858: check if job terminal is running #10908Jan Edmund Lazo2019-09-01
| | | | | Problem: Can exit while a terminal is still running a job. Solution: Consider a buffer with a running job like a changed file. https://github.com/vim/vim/commit/eb44a68b42eda207a5bc4def9ea8fc4d38acb650
* includesDaniel Hahler2019-08-07
|
* vim-patch:8.1.1049: when user tries to exit with CTRL-C message is confusingJan Edmund Lazo2019-07-28
| | | | | | | | | | | | | | | | | | Problem: When user tries to exit with CTRL-C message is confusing. Solution: Only mention ":qa!" when there is a changed buffer. (closes vim/vim#4163) https://github.com/vim/vim/commit/a84a3dd6635fcd2e07f510cba6a999585dcc381a vim-patch:8.1.1052: test for CTRL-C message sometimes fails Problem: test for CTRL-C message sometimes fails Solution: Make sure there are no changed buffers. https://github.com/vim/vim/commit/553e5a5c568e7d175b65b0472cd6d9843b25f4c8 vim-patch:8.1.1053: warning for missing return statement Problem: Warning for missing return statement. (Dominique Pelle) Solution: Add return statement. https://github.com/vim/vim/commit/d6c3f1fa2b5e1dd7dc87cf608d72b84ad696b58f
* cleanup: remove mch_fopen in favor of os_fopenJustin M. Keyes2019-07-25
|
* api: allow nvim_buf_attach from lua using callbacksBjörn Linse2019-06-04
|
* 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
* cleanup: remove HAVE_SELINUX #10040Justin M. Keyes2019-05-21
| | | | We never define HAVE_SELINUX, and no one has asked for it. So remove the dead code.
* lintJan Edmund Lazo2019-04-30
|
* lintJustin M. Keyes2019-04-29
|
* verb_msg: remove char_uJustin M. Keyes2019-04-29
|
* vim-patch:8.1.1207: some compilers give warning messagesJan Edmund Lazo2019-04-27
| | | | | | | Problem: Some compilers give warning messages. Solution: Initialize variables, change printf() argument. (Christian Brabandt, closes vim/vim#4305) https://github.com/vim/vim/commit/1f3601e92e7fd2813b9541580d6d9649c802eb58
* vim-patch:8.0.0776: function prototypes missing without the quickfix featureJan Edmund Lazo2019-04-14
| | | | | | | Problem: Function prototypes missing without the quickfix feature. (Tony Mechelynck) Solution: Move non-quickfix functions to buffer.c. https://github.com/vim/vim/commit/f0a521f4f76904edb74e182c12732189b347ff68
* vim-patch:8.1.0308: a quick undo shows "1 seconds ago"Jan Edmund Lazo2019-04-05
| | | | | | Problem: A quick undo shows "1 seconds ago". (Tony Mechelynck) Solution: Add singular/plural message. https://github.com/vim/vim/commit/fd6100b2aa6178b88cfadcdbc494966bf79a5488
* vim-patch:8.1.0135: undo message delays screen update for CTRL-O uJan Edmund Lazo2019-04-04
| | | | | | Problem: Undo message delays screen update for CTRL-O u. Solution: Add smsg_attr_keep(). (closes vim/vim#3125) https://github.com/vim/vim/commit/e0429681aed5448d1c3b8399d152a2b1a05ea6d7
* Merge #9036 'func_attr_printf'Justin M. Keyes2018-10-07
|\
| * fixed lint errorsMichaHoffmann2018-09-24
| |
| * add func_attr_printf in :MichaHoffmann2018-09-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | log.c message.c strings.c fixed some printf warnings in: src/nvim/undo.c src/nvim/eval.c src/nvim/eval/encode.c src/nvim/eval/typval.c src/nvim/ex_getln.c src/nvim/fileio.c src/nvim/lua/executor.c src/nvim/main.c src/nvim/regexp_nfa.c src/nvim/shada.c src/nvim/spellfile.c src/nvim/tui/terminfo.c src/nvim/garray.h
* | undo: Fix infinite loop if undo_read_byte returns EOF #2880ssteinbach2018-09-30
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Corrupt(?) persistent undofile leads to an infinite loop. Solution: Break out of loop if undo_read_byte returns EOF (cf. u_read_undo() which does this too). backtrace from lldb (@ a743297be2b3): Process 70700 stopped * thread 1: tid = 0x147d2d1, 0x00007fff8c8facd7 libsystem_pthread.dylib`__mtx_droplock + 209, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP frame 0: 0x00007fff8c8facd7 libsystem_pthread.dylib`__mtx_droplock + 209 libsystem_pthread.dylib`__mtx_droplock + 209: -> 0x7fff8c8facd7: movq %rcx, -0x50(%rbp) 0x7fff8c8facdb: movq %r8, -0x58(%rbp) 0x7fff8c8facdf: movq %rdx, -0x68(%rbp) 0x7fff8c8face3: movq %r14, -0x60(%rbp) (lldb) bt * thread 1: tid = 0x147d2d1, 0x00007fff8c8facd7 libsystem_pthread.dylib`__mtx_droplock + 209, queue = 'com.apple.main-thread', stop reason = signal SIGSTOP * frame 0: 0x00007fff8c8facd7 libsystem_pthread.dylib`__mtx_droplock + 209 frame 1: 0x00007fff8c8fab4e libsystem_pthread.dylib`pthread_mutex_unlock + 63 frame 2: 0x00007fff915da2a4 libsystem_c.dylib`getc + 63 frame 3: 0x000000010e6194b9 nvim`undo_read_byte(bi=0x00007fff5181a838) + 25 at undo.c:1553 frame 4: 0x000000010e619685 nvim`unserialize_uhp(bi=0x00007fff5181a838, file_name=0x000000000f2e8060) + 421 at undo.c:840 frame 5: 0x000000010e618abb nvim`u_read_undo(name=0x0000000000000000, hash=0x00007fff5181af80, orig_name=0x000000000f370dd0) + 1579 at undo.c:1363 frame 6: 0x000000010e4a8db9 nvim`readfile(fname=0x000000000f370dd0, sfname=0x000000000f370dd0, from=0, lines_to_skip=0, lines_to_read=2147483647, eap=0x00007fff5181b6a0, flags=1) + 21017 at fileio.c: 1961 frame 7: 0x000000010e3ecc8b nvim`open_buffer(read_stdin=0, eap=0x00007fff5181b6a0, flags=0) + 603 at buffer.c:153 ... closes #2879 closes #2880
* vim-patch:8.0.1443: compiler complains about uninitialized variableJan Edmund Lazo2018-09-17
| | | | | | Problem: Compiler complains about uninitialized variable. (Tony Mechelynck) Solution: Assign a value to the variable. https://github.com/vim/vim/commit/059fd01021779ee369c1e55557275f6c349fda9e
* lintJan Edmund Lazo2018-08-20
|
* undo: undo_undoes is boolJan Edmund Lazo2018-08-20
|
* undo: did_undo,absolute in u_undo_end() are boolJan Edmund Lazo2018-08-20
|
* undo: update undo_time() function signatureJan Edmund Lazo2018-08-20
| | | | | sec,file,absolute (params) are bool. Fix callers and local variables of undo_time().
* undo: above,did_undo in undo_time() are boolJan Edmund Lazo2018-08-20
|
* vim-patch:8.0.1441: using ":undo 0" leaves undo in wrong stateJan Edmund Lazo2018-08-20
| | | | | | | Problem: Using ":undo 0" leaves undo in wrong state. Solution: Instead of searching for state 1 and go above, just use the start. (Ozaki Kiichi, closes vim/vim#2595) https://github.com/vim/vim/commit/ce46d934af35d0f774be7f996001db03cf0b894a
* memline: copy in ml_replace() is boolJan Edmund Lazo2018-08-07
|
* *: Replace b_changedtick with new always-inline functionsZyX2018-06-22
| | | Ref #8474
* vim-patch:8.0.0636: when reading the undo file fails may use uninitialized ↵Jan Edmund Lazo2018-06-20
| | | | | | | data (#8599) Problem: When reading the undo file fails may use uninitialized data. Solution: Always clear the buffer on failure. https://github.com/vim/vim/commit/56f2db562ddc6c69026d55360f0cfaacd8adc26a
* vim-patch:8.0.0451: some macros are in lower caseJan Edmund Lazo2018-06-12
| | | | | | | Problem: Some macros are in lower case. Solution: Make a few more macros upper case. Avoid lower case macros use an argument twice. https://github.com/vim/vim/commit/91acfffc1e6c0d8c2abfb186a0e79a5bf19c3f3f
* vim-patch:8.0.0466: still macros that should be all-caps (#8510)Jan Edmund Lazo2018-06-10
| | | | | Problem: There are still a few macros that should be all-caps. Solution: Make a few more macros all-caps. https://github.com/vim/vim/commit/8820b48654b62472821d9b155fe03ab7ac13a05c
* Merge #7917 'API: buffer updates'Justin M. Keyes2018-06-08
|\
| * Rename some more, fixe borked renamingKillTheMule2018-05-23
| |
| * Some renamings and doc changesKillTheMule2018-05-23
| |
| * Enable -WconversionKillTheMule2018-05-23
| |
| * The grand renamingKillTheMule2018-05-23
| |
| * LintKillTheMule2018-05-23
| |
| * API: Implement buffer updatesPeter Hodge2018-05-23
|/ | | | | Originally written by @phodge in https://github.com/neovim/neovim/pull/5269.
* undo: Silence PVS/V547: expression may be false on other systemZyX2018-04-22
|
* vim-patch:8.0.0448: some macros are lower case (#7936)KunMing Xie2018-01-30
| | | | | | | Problem: Some macros are in lower case, which can be confusing. Solution: Make a few lower case macros upper case. https://github.com/vim/vim/commit/b5aedf3e228d35821591da9ae8501b61cf2e264c ref #6297
* *: Provide list length when allocating listsZyX2018-01-14
|
* vim-patch:8.0.0074Michael Schupikov2017-12-15
| | | | | | | | | | Problem: Cannot make Vim fail on an internal error. Solution: Add IEMSG() and IEMSG2(). (Domenique Pelle) Avoid reporting an internal error without mentioning where. https://github.com/vim/vim/commit/95f096030ed1a8afea028f2ea295d6f6a70f466f Signed-off-by: Michael Schupikov <michael@schupikov.de>
* vim-patch:8.0.0149 (#7127)KunMing Xie2017-08-08
| | | | | | | | | Problem: ":earlier" and ":later" do not work after startup or reading the undo file. Solution: Use absolute time stamps instead of relative to the Vim start time. (Christian Brabandt, Pavel Juhas, closes vim/vim#1300, closes vim/vim#1254) https://github.com/vim/vim/commit/cbd4de44e8d08fba3c09eb40ad6e36e83faf020a
* bufhl: fix moveBjörn Linse2017-06-24
|
* *: Add comment to all C filesZyX2017-04-19
|
* vim-patch:8.0.0378James McCoy2017-04-09
| | | | | | | | | Problem: Another possible overflow when reading corrupted undo file. Solution: Check if allocated size is not too big. (King) https://github.com/vim/vim/commit/0c8485f0e4931463c0f7986e1ea84a7d79f10c75 CVE-2017-6350
* vim-patch:8.0.0377James McCoy2017-04-09
| | | | | | | | | Problem: Possible overflow when reading corrupted undo file. Solution: Check if allocated size is not too big. (King) https://github.com/vim/vim/commit/3eb1637b1bba19519885dd6d377bd5596e91d22c CVE-2017-6349
* eval: Move remaining get_tv_string* functions to eval/typval.cZyX2017-03-29
|
* eval,*: Move get_tv_string to typval.cZyX2017-03-29
| | | | Function was renamed and changed to return `const char *`.