diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-23 09:47:19 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-23 09:47:19 +0300 |
commit | bbe7f061891e4410423697cbc9d5f4ab19bcde16 (patch) | |
tree | a08ca94919b1d4e64916cae68ca9461bc1ccee84 /dive.c | |
parent | bf33bf879faf08ef515be9c539e537a5d6df1f17 (diff) | |
download | subsurface-bbe7f061891e4410423697cbc9d5f4ab19bcde16.tar.gz |
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>
Diffstat (limited to 'dive.c')
-rw-r--r-- | dive.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |