diff options
author | andmarti1424 <andmarti@gmail.com> | 2017-04-09 19:19:22 -0300 |
---|---|---|
committer | andmarti1424 <andmarti@gmail.com> | 2017-04-09 19:19:22 -0300 |
commit | f5959f99d723630c9efaaa30a1209316064f9158 (patch) | |
tree | d91369c0e31ad8eac4104a02b27608b968444386 /src/history.c | |
parent | cc90329962d76e1103aa43653993cf2f01c5038b (diff) |
cleaned comments
Diffstat (limited to 'src/history.c')
-rw-r--r-- | src/history.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/history.c b/src/history.c index e0e2bf5..08b6998 100644 --- a/src/history.c +++ b/src/history.c @@ -147,9 +147,11 @@ void del_item_from_history(struct history * h, int pos) { return; } -// Find a history element and move it. Starts from POS -// pos=0 first element, pos=-1 second element -// returns 1 if moved, 0 otherwise. +/* + * Find a history element and move it. Starts from POS + * pos=0 first element, pos=-1 second element + * returns 1 if moved, 0 otherwise. + */ int move_item_from_history_by_str(struct history * h, wchar_t * item, int pos) { if (h->len - 1 < -pos || pos == 0 || ! wcslen(item)) return 0; // Move the first element is not allowed struct hlist * nl = h->list; @@ -202,8 +204,10 @@ void add(struct history * h, wchar_t * line) { return; } -// Returns a history line from COMMAND_MODE -// POS 0 is the most recent line +/* + * Returns a history line from COMMAND_MODE + * POS 0 is the most recent line + */ wchar_t * get_line_from_history(struct history * h, int pos) { return get_hlist_from_history(h, pos)->line; } |