zeertzjq
2e7d89b398
patch 9.1.0556: :bwipe doesn't remove file from jumplist of other tabpages
...
Problem: :bwipe doesn't remove file from jumplist and tagstack of other
tabpages. Time complexity of mark_forget_file() is O(n^2) when
removing all entries (after v9.1.0554)
Solution: Use FOR_ALL_TAB_WINDOWS(). Start the loops over the arrays
from the end instead of the start (zeertzjq)
closes : #15199
Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-07-10 19:36:36 +02:00
LemonBoy
4ff3a9b1e3
patch 9.1.0554: :bw leaves jumplist and tagstack data around
...
Problem: :bw leaves jumplist and tagstack data around
(Paul "Joey" Clark)
Solution: Wipe jumplist and tagstack references to the wiped buffer
(LemonBoy)
As documented the :bwipeout command brutally deletes all the references
to the buffer, so let's make it delete all the entries in the jump list
and tag stack referring to the wiped-out buffer.
fixes : #8201
closes : #15185
Signed-off-by: LemonBoy <thatlemon@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
2024-07-09 20:03:24 +02:00
Yegappan Lakshmanan
87018255e3
patch 9.0.1921: not possible to use the jumplist like a stack
...
Problem: not possible to use the jumplist like a stack
Solution: Add the 'jumpoptions' setting to make the jumplist
a stack.
Add an option for using jumplist like tag stack
related: #7738
closes : #13134
ported from NeoVim:
- https://neovim.io/doc/user/motion.html#jumplist-stack
- neovim/neovim@39094b3
- neovim/neovim#11530
- https://vi.stackexchange.com/questions/18344/how-to-change-jumplist-behavior
Based on the feedback in the previous PR, it looks like many people like
this option.
Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Co-authored-by: butwerenotthereyet <58348703+butwerenotthereyet@users.noreply.github.com>
2023-09-20 20:25:17 +02:00
Bram Moolenaar
e7f05a8780
patch 9.0.1476: lines put in non-current window are not displayed
...
Problem: Lines put in non-current window are not displayed. (Marius
Gedminas)
Solution: Don't increment the topline when inserting just above it.
(closes #12212 )
2023-04-22 15:35:28 +01:00
Yegappan Lakshmanan
e857598896
patch 9.0.1196: code is indented more than necessary
...
Problem: Code is indented more than necessary.
Solution: Use an early return where it makes sense. (Yegappan Lakshmanan,
closes #11813 )
2023-01-14 12:32:28 +00:00
Bram Moolenaar
8ecfa2c56b
patch 9.0.0530: using freed memory when autocmd changes mark
...
Problem: Using freed memory when autocmd changes mark.
Solution: Copy the mark before editing another buffer.
2022-09-21 13:07:22 +01:00
Bram Moolenaar
8088ae95bb
patch 8.2.5138: various small issues
...
Problem: Various small issues.
Solution: Various small improvments.
2022-06-20 11:38:17 +01:00
Christian Brabandt
a0f659c76e
patch 8.2.4719: ">" marker sometimes not displayed in the jumplist
...
Problem: ">" marker sometimes not displayed in the jumplist.
Solution: If the buffer no longer exists show "-invalid-". (Christian
Brabandt, closes #10131 , closes #10100 )
2022-04-09 13:35:00 +01:00
Bram Moolenaar
b4ad3b0dea
patch 8.2.4649: various formatting problems
...
Problem: Various formatting problems.
Solution: Improve the code formatting.
2022-03-30 10:57:45 +01:00
Bram Moolenaar
424bcae1fb
patch 8.2.4273: the EBCDIC support is outdated
...
Problem: The EBCDIC support is outdated.
Solution: Remove the EBCDIC support.
2022-01-31 14:59:41 +00:00
Dominique Pelle
748b308eeb
patch 8.2.4038: various code not used when features are disabled
...
Problem: Various code not used when features are disabled.
Solution: Add #ifdefs. (Dominique Pellé, closes #9491 )
2022-01-08 12:41:16 +00:00
Bram Moolenaar
9a846fbaa5
patch 8.2.3977: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2022-01-01 21:59:18 +00:00
Bram Moolenaar
436b5adc97
patch 8.2.3961: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2021-12-31 22:49:24 +00:00
Bram Moolenaar
739f13a55b
patch 8.2.3795: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate the jumplist feature.
2021-12-13 13:12:53 +00:00
Bram Moolenaar
40bcec1bac
patch 8.2.3750: error messages are everywhere
...
Problem: Error messages are everywhere.
Solution: Move more error messages to errors.h and adjust the names.
2021-12-05 22:19:27 +00:00
Bram Moolenaar
e08aee60ab
patch 8.2.3532: the previous '' mark is restored after moving the cursor
...
Problem: The previous '' mark is restored after moving the cursor to the
original jump position. (Tony Chen)
Solution: Forget the previous position after checking. (closes #8985 )
2021-10-17 21:53:58 +01:00
Yegappan Lakshmanan
4490ec4e83
patch 8.2.3229: Vim9: runtime and compile time type checks are not the same
...
Problem: Vim9: runtime and compile time type checks are not the same.
Solution: Add more runtime type checks for builtin functions. (Yegappan
Lakshmanan, closes #8646 )
2021-07-27 22:00:44 +02:00
Bram Moolenaar
108010aa47
patch 8.2.3069: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move some error messages to errors.h. Use clearer names.
2021-06-27 22:03:33 +02:00
Bram Moolenaar
ab55f11d9b
patch 8.2.2407: old jumplist code is never used
...
Problem: Old jumplist code is never used.
Solution: Delete the dead code. (Yegappan Lakshmanan, closes #7740 )
2021-01-25 18:44:57 +01:00
Bram Moolenaar
e100440158
patch 8.2.1898: command modifier parsing always uses global cmdmod
...
Problem: Command modifier parsing always uses global cmdmod.
Solution: Pass in cmdmod_T to use. Rename struct fields consistently.
2020-10-24 20:49:43 +02:00
Bram Moolenaar
54c3fcd852
patch 8.2.1252: ":marks" may show '< and '> mixed up
...
Problem: ":marks" may show '< and '> mixed up.
Solution: Show the mark position as where '< and '> would jump.
2020-07-19 22:09:06 +02:00
Bram Moolenaar
71ccd03ee8
patch 8.2.0967: unnecessary type casts for vim_strnsave()
...
Problem: Unnecessary type casts for vim_strnsave().
Solution: Remove the type casts.
2020-06-12 22:59:11 +02:00
Bram Moolenaar
f17e7ea67a
patch 8.2.0871: cannot use getmarklist() as a method
...
Problem: Cannot use getmarklist() as a method.
Solution: Make getmarklist() work as a method. Add one to the column
number to match getpos(). (Yegappan Lakshmanan, closes #6176 )
2020-06-01 14:14:44 +02:00
Bram Moolenaar
cfb4b47de0
patch 8.2.0861: cannot easily get all the current marks
...
Problem: Cannot easily get all the current marks.
Solution: Add getmarklist(). (Yegappan Lakshmanan, closes #6032 )
2020-05-31 15:41:57 +02:00
Bram Moolenaar
8cd6cd8087
patch 8.2.0050: after deleting a file mark it is still in viminfo
...
Problem: After deleting a file mark it is still in viminfo.
Solution: When a file mark was deleted more recently than the mark in the
merged viminfo file was updated, do not store the mark. (Pavol
Juhas, closes #5401 , closes #1339 )
2019-12-27 17:33:26 +01:00
Bram Moolenaar
4ba37b5833
patch 8.1.2388: using old C style comments
...
Problem: Using old C style comments.
Solution: Use // comments where appropriate.
2019-12-04 21:57:43 +01:00
Bram Moolenaar
4bd782339e
patch 8.1.2058: function for ex command is named inconsistently
...
Problem: Function for ex command is named inconsistently.
Solution: Rename do_marks() to ex_marks().
2019-09-19 23:21:55 +02:00
Bram Moolenaar
5843f5f37b
patch 8.1.1891: functions used in one file are global
...
Problem: Functions used in one file are global.
Solution: Add "static". (Yegappan Lakshmanan, closes #4840 )
2019-08-20 20:13:45 +02:00
Bram Moolenaar
1e78e69680
patch 8.1.1730: wrong place for mark viminfo support
...
Problem: Wrong place for mark viminfo support.
Solution: Move it to viminfo.c. (Yegappan Lakshmanan, closes #4716 )
2019-07-22 20:18:27 +02:00
Bram Moolenaar
c799fe206e
patch 8.1.1414: alloc() returning "char_u *" causes a lot of type casts
...
Problem: Alloc() returning "char_u *" causes a lot of type casts.
Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to
check the simple allocations.
2019-05-28 23:08:19 +02:00
Bram Moolenaar
eae1b91fea
patch 8.1.1306: Borland support is outdated and doesn't work
...
Problem: Borland support is outdated and doesn't work.
Solution: Remove Borland support, there are other (free) compilers
available. (Thomas Dziedzic, Ken Takata, closes #4364 )
2019-05-09 15:12:55 +02:00
Bram Moolenaar
ad6dc49a75
patch 8.1.1221: filtering does not work when listing marks
...
Problem: Filtering does not work when listing marks.
Solution: Implement filtering marks. (Marcin Szamotulski, closes #3895 )
2019-04-27 22:40:08 +02:00
Bram Moolenaar
d93090f41f
patch 8.1.0833: memory leak when jumps output is filtered
...
Problem: Memory leak when jumps output is filtered.
Solution: Free the filtered name. (Dominique Pelle, closes #3869 )
2019-01-27 15:07:39 +01:00
Bram Moolenaar
29ddebef40
patch 8.1.0826: too many #ifdefs
...
Problem: Too many #ifdefs.
Solution: Graduate FEAT_VIRTUALEDIT. Adds about 10Kbyte to the code.
2019-01-26 17:28:26 +01:00
Bram Moolenaar
32526b3c18
patch 8.1.0779: argument for message functions is inconsistent
...
Problem: Argument for message functions is inconsistent.
Solution: Make first argument to msg() "char *".
2019-01-19 17:43:09 +01:00
Bram Moolenaar
f9e3e09fdc
patch 8.1.0743: giving error messages is not flexible
...
Problem: Giving error messages is not flexible.
Solution: Add semsg(). Change argument from "char_u *" to "char *", also
for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes
#3302 ) Also make emsg() accept a "char *" argument. Get rid of
an enormous number of type casts.
2019-01-13 23:38:42 +01:00
Bram Moolenaar
e1e714ef0d
patch 8.1.0671: cursor in the wrong column after auto-formatting
...
Problem: Cursor in the wrong column after auto-formatting.
Solution: Check for deleting more spaces than adding. (closes #3748 )
2018-12-31 23:58:24 +01:00
Bram Moolenaar
f86db78fed
patch 8.1.0495: :filter only supports some commands
...
Problem: :filter only supports some commands.
Solution: Add :filter support for more commands. (Marcin Szamotulski,
closes #2856 )
2018-10-25 13:31:37 +02:00
Bram Moolenaar
9d5185bf9d
patch 8.1.0168: output of :marks is too short with multi-byte chars
...
Problem: Output of :marks is too short with multi-byte chars. (Tony
Mechelynck)
Solution: Get more bytes from the text line.
2018-07-08 17:57:34 +02:00
Bram Moolenaar
4867974137
patch 8.0.1513: the jumplist is not always properly cleaned up
...
Problem: The jumplist is not always properly cleaned up.
Solution: Call fname2fnum() before cleanup_jumplist(). (Yegappan Lakshmanan)
2018-02-13 13:33:29 +01:00
Bram Moolenaar
a7e18d237f
patch 8.0.1498: getjumplist() returns duplicate entries
...
Problem: Getjumplist() returns duplicate entries. (lacygoill)
Solution: Call cleanup_jumplist(). (Yegappan Lakshmanan)
2018-02-11 14:29:49 +01:00
Bram Moolenaar
d23a823669
patch 8.0.1496: clearing a pointer takes two lines
...
Problem: Clearing a pointer takes two lines.
Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi,
closes #2629 )
2018-02-10 18:45:26 +01:00
Bram Moolenaar
4033c55eca
patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefs
...
Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always
enabled and only adds 7% to the binary size of the tiny build.
Solution: Graduate FEAT_WINDOWS.
2017-09-16 20:54:51 +02:00
Bram Moolenaar
e62780543f
patch 8.0.0930: terminal buffers are stored in the viminfo file
...
Problem: Terminal buffers are stored in the viminfo file while they can't
be useful.
Solution: Skip terminal buffers for file marks and buffer list
2017-08-13 18:11:17 +02:00
Bram Moolenaar
8820b48654
patch 8.0.0466: still macros that should be all-caps
...
Problem: There are still a few macros that should be all-caps.
Solution: Make a few more macros all-caps.
2017-03-16 17:23:31 +01:00
Bram Moolenaar
88d298aed8
patch 8.0.0457: using :move messes up manual folds
...
Problem: Using :move messes up manual folds.
Solution: Split adjusting marks and folds. Add foldMoveRange(). (neovim
patch #6221 )
2017-03-14 21:53:58 +01:00
Bram Moolenaar
91acfffc1e
patch 8.0.0451: some macros are in lower case
...
Problem: Some macros are in lower case.
Solution: Make a few more macros upper case. Avoid lower case macros use an
argument twice.
2017-03-12 19:22:36 +01:00
Bram Moolenaar
b5aedf3e22
patch 8.0.0448: some macros are in lower case
...
Problem: Some macros are in lower case, which can be confusing.
Solution: Make a few lower case macros upper case.
2017-03-12 18:23:53 +01:00
Bram Moolenaar
f13e00b2cf
patch 8.0.0255: setpos() does not use the buffer argument for all marks
...
Problem: When calling setpos() with a buffer argument it often is ignored.
(Matthew Malcomson)
Solution: Make the buffer argument work for all marks local to a buffer.
(neovim #5713 ) Add more tests.
2017-01-28 18:23:54 +01:00
Bram Moolenaar
156919f99a
patch 8.0.0039
...
Problem: When Vim 8 reads an old viminfo and exits, the next time marks are
not read from viminfo. (Ned Batchelder)
Solution: Set a mark when it wasn't set before, even when the timestamp is
zero. (closes #1170 )
2016-10-15 20:46:20 +02:00