mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add completions to the dive location, buddy and divemaster entries
This way you can just type the first few characters of a location you've been to before, and it will show you a list of possible completions. Same for buddies and divemasters (which take the completions from a list of people you've used before). Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
bf33bf879f
commit
bbe7f06189
3 changed files with 69 additions and 4 deletions
3
dive.c
3
dive.c
|
|
@ -240,6 +240,9 @@ struct dive *fixup_dive(struct dive *dive)
|
|||
update_temperature(&dive->watertemp, mintemp);
|
||||
update_depth(&dive->maxdepth, maxdepth);
|
||||
|
||||
add_people(dive->buddy);
|
||||
add_people(dive->divemaster);
|
||||
add_location(dive->location);
|
||||
for (i = 0; i < MAX_CYLINDERS; i++) {
|
||||
cylinder_type_t *type = &dive->cylinder[i].type;
|
||||
add_cylinder_description(type);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue