1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-16 06:44:50 +00:00
TiddlyWiki5/core/modules
Robin Munn 8effb3f218
Fix list widget bug with counter-last when appending items (#7712)
* Add failing test for list widget with counter-last

The failing test appends a value to a list without changing the rest of
the list, and the counter-last value doesn't get updated correctly when
that happens. Also added another test, which passes, testing removing
the last item of the list, just in case of a regression.

* Improve unit tests for counter-last list widget bug

The unit tests were looking very similar to each other, so I factored
out the common code and made them into simple data-driven tests.

* Fix bug where counter-last fails in list widget

The only scenario that was failing was when counter-last was used, but
the list was strictly appended to with no other changes made. The one
unit test that was failing now passes with this fix.

* Improve bugfix to list widget counter-last

Now we only refresh the last item if it was truly necessary.
2023-09-24 20:19:50 +01:00
..
commands Add explodePlugins=yes option to savewikifolder command (#7490) 2023-06-29 15:40:35 +01:00
editor Fix typo in 7d8766d2b9 2023-09-13 18:06:30 +01:00
filterrunprefixes Add a :then filter run prefix (#7392) 2023-06-24 18:07:34 +01:00
filters Slightly speed up [all[shadows+tiddlers]] filters (#7702) 2023-09-24 20:19:04 +01:00
indexers FieldIndexer performance: use isShadowTiddler instead of allTitles (#7299) 2023-02-27 17:32:20 +00:00
info style(App) eliminate whitespace at the end of code lines (#5735) 2021-05-30 19:20:17 +01:00
macros allow unusedtitle macro to use the prefix parameter and fix wiki.generateNewTitle() (#5361) 2021-05-02 19:26:50 +01:00
parsers Feat: allow new pragmas to be indented (#7624) 2023-07-21 13:40:42 +01:00
savers Remove savers for Beaker Browser now it is archived 2023-01-19 16:45:30 +00:00
server Feat: decode url-encoded user name in authenticate request header to allow CJK username in header (#7471) 2023-05-22 12:25:51 +01:00
startup Fix drag and drop from chrome-like browsers to FireFox (#7622) 2023-07-22 15:47:39 +01:00
storyviews Revert "Feat: destroy() method for widgets to do custom cleanup (#6699)" 2023-05-18 17:27:05 +01:00
upgraders Introduce JSON parse utility function with error handling (#6401) 2022-02-21 15:29:25 +00:00
utils Fix drag and drop from chrome-like browsers to FireFox (#7622) 2023-07-22 15:47:39 +01:00
widgets Fix list widget bug with counter-last when appending items (#7712) 2023-09-24 20:19:50 +01:00
commander.js style(App) eliminate whitespace at the end of code lines (#5735) 2021-05-30 19:20:17 +01:00
config.js Add dollar sign to HTML entities (#7323) 2023-03-03 21:34:30 +00:00
deserializers.js Introduce JSON parse utility function with error handling (#6401) 2022-02-21 15:29:25 +00:00
filters.js Refactor dependency on widget.getVariableInfo 2023-06-11 09:46:05 +01:00
keyboard.js Allow global keyboard shortcuts to override all other shortcuts by providing a special field (#6735) 2022-10-07 17:31:04 +01:00
language.js Make lazy loading message be translateable 2015-09-08 10:41:27 +01:00
pluginswitcher.js Introduce JSON parse utility function with error handling (#6401) 2022-02-21 15:29:25 +00:00
saver-handler.js Fix faulty external-js single-file wiki (#5570) 2021-07-06 15:02:21 +01:00
story.js Fix issues with creation and modification dates 2015-09-11 13:34:01 +01:00
syncer.js Lazy loading a tiddler should trigger a sync 2023-01-03 14:28:48 +00:00
tiddler.js Radio widget should use default if field/index is missing 2022-01-09 17:17:12 +00:00
wiki-bulkops.js Fix renaming a tiddler can result in duplicate tags 2022-01-14 16:57:30 +00:00
wiki.js Allow attribute substitution to handle variables containing non-word characters (#7606) 2023-07-14 21:42:31 +01:00