summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-10-23ChangeLog & man page version/date bump for 1.6v1.6Yorhel2-4/+4
2009-10-18Added some keybindings and changed 'h' to 'e' in browserYorhel5-10/+25
2009-10-18Call setlocale() at initializationYorhel4-2/+9
This (in combination with linking to ncursesw) fixes the display of non-ASCII characters.
2009-10-18Link to ncursesw when availableYorhel2-7/+28
Or force the use of a library with --with-ncurses or --with-ncursesw. Implementation based on/stolen from the configure.ac in ncmpc.
2009-08-03Update TODO file with some ideas for improvements in hard link handlingYorhel1-2/+7
These ideas may not be very easy to implement, and may not be worth the performance penalty they might introduce. But that's something that still needs to be investigated.
2009-08-03Properly display MiB units instead of MBYorhel3-14/+15
Fixes bug #2831412 (debian #539553)
2009-06-06Return to previously opened directory on failed recalculationYorhel2-1/+2
...instead of displaying an empty and unusable browser.
2009-06-06Properly free return value of opendir() on calculation interruptYorhel2-0/+4
When interrupinting the calculation process by pressing 'q' while it's looping through a directory, or when a directory could be openend but not chdir()'ed into, closedir() wasn't called.
2009-06-06Removed another occurence of dirfd()Yorhel1-6/+0
This fixes a tiny memory leak as well, as the return value of opendir() wasn't passed to a closedir() after use.
2009-06-06Don't call link_del() on free'd memoryYorhel1-1/+2
2009-05-16Fixed non-void return in void delete_process()Sebastian Kayser2-2/+5
Fixes bug #2789781.
2009-05-16Removed reliance on dirfd()Yorhel3-5/+2
2009-05-12Removed the ST_QUIT stateYorhel4-9/+12
There shouldn't be a need for such a state when there's a central place where the program execution keeps returning to.
2009-05-12calc.c: Removed an unused variable in calc_item()Yorhel1-1/+0
2009-05-12util.h: Typo in function declarationYorhel1-1/+1
2009-05-11Properly select the next item after deletionYorhel2-1/+2
Setting FF_BSEL after calling browse_init() causes two items to be selected, as browse_init() makes sure something will be selected, while calc_process() assumes nothing is, because the previously selected item had just been deleted.
2009-05-11Use correct hard link information after partial recalculation or deletionYorhel6-39/+116
Hard link detection is now done in a separate pass on the in-memory tree, and duplicates can be 'removed' and 're-added' on the fly. When making any changes in the tree, all hard links are re-added before the operation and removed again afterwards. While this guarantees that all hard link information is correct, it does have a few drawbacks. I can currently think of two: 1. It's not the most efficient way to do it, and may be quite slow on large trees. Will have to do some benchmarks later to see whether it is anything to be concerned about. 2. The first encountered item is considered as 'counted' and all items encountered after that are considered as 'duplicate'. Because the order in which we traverse the tree doesn't always have to be the same, the items that will be considered as 'duplicate' can vary with each deletion or re-calculation. This might cause confusion for people who aren't aware of how hard links work.
2009-05-05Allocate correct amount of memory for the links listYorhel1-2/+2
I happen to make these kinds of mistakes a lot, for some strange reason. Maybe I should just get more sleep...
2009-05-05Added hard link indicator in browser and help windowYorhel4-6/+10
2009-05-05Implemented hardlink detectionYorhel1-9/+47
2009-05-02Version & date bump for ChangeLog and manual pagev1.5Yorhel2-2/+2
2009-05-02Fixed a browsing bug related to hiding itemsYorhel1-2/+6
Reproducable with the following steps: - Make sure the first item in the list is a directory starting with a dot - Make sure the next item is a normal directory - Select first item - Press 'h' to hide it, next item will properly be selected - Open selected directory (right arrow), and see how the first (hidden) directory was opened. It's amazing how I've even found this bug, considering that really is the only way to reproduce it...
2009-05-02Removed powers of 1000/1024 toggle from help.cYorhel1-2/+1
2009-05-02Use absolute path for matching excluded itemsYorhel1-1/+1
2009-05-02Fixed buffer overrun in calc.cYorhel1-1/+1
2009-05-01Don't divide by zero when size of parent dir = 0Yorhel1-1/+3
It's a floating point division, so won't really cause any real problems on most systems. Still, a percentage of 'nan' isn't really useful.
2009-05-01Fixed line width when displaying 100%Yorhel2-5/+5
Which would happen if there's only one file is in a directory
2009-04-30Cleaned up configure.inYorhel1-10/+6
Removed some obsolete macros and added a few more headers and function checks.
2009-04-28Don't try to delete a directory that's not emptyYorhel1-5/+5
2009-04-26Replaced the NEWS file with a symlink pointing to the ChangeLogYorhel1-51/+1
2009-04-26Fixed segfault after aborting calculationYorhel1-1/+1
I really, really, wasn't think when writing commit 91b131a0805a6932fa48255473b1edaa3bf031a1
2009-04-26Fixed display bug on deletion errorYorhel1-3/+5
2009-04-26Fixed display of one-component-after-root directoryYorhel1-2/+2
Bug introduced in ece21a668d43dac69c25315a22f1f7d0147f7198 It's amazing how many mistakes one person can make in a few hours.
2009-04-26Fixed segault after finishing calculationYorhel1-2/+2
Bug introduced in 796d043c0df84fd0cb470c0bda9bacd2d39f9d14 Apparently I was still sleeping or something...
2009-04-26Fixed display of the root directoryYorhel2-3/+10
2009-04-26Properly call calc_leavepath() on errorYorhel1-2/+8
2009-04-26Fixed bug with opening the root directoryYorhel1-8/+28
2009-04-26Removed useless call to path_real()Yorhel1-1/+1
2009-04-26Fixed bug with configure still relying on ncdu.hYorhel1-1/+1
2009-04-26Updated ChangeLog and TODOYorhel2-2/+3
2009-04-26Move cursor to the correct line in browse_draw()Yorhel1-0/+1
2009-04-26Removed last occurence of PATH_MAXYorhel2-34/+19
And it wasn't even used for a path, but for a row on the screen...
2009-04-26Renamed ncdu.h to global.h and #included all other header files into thatYorhel12-39/+23
So we're actually back to having one header file for everything, except it's now maintainable.
2009-04-26Improved deletion performanceYorhel1-6/+16
2009-04-26Don't re-sort when pressing the browse keys without affecting the dirYorhel1-9/+12
2009-04-26Centralized screen update delay into input_handle()Yorhel10-71/+45
2009-04-26Huge performance improvement with the calculationYorhel1-32/+49
2009-04-25Fixed another memory allocation issueYorhel1-1/+8
2009-04-25Don't segfault when browsing an empty dir...Yorhel1-5/+7
2009-04-25Fixed another PATH_MAX reliance in calc.cYorhel1-5/+5
Make sure not to pass the absolute root directory to lstat() and chdir(), as these functions can't handle long path names.