diff options
author | axel <axel@liljencrantz.se> | 2005-12-15 23:59:02 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2005-12-15 23:59:02 +1000 |
commit | fa75fc390162c19d9cc15c12e7c99e9301c89409 (patch) | |
tree | 2b949ef33d1b8ba79822888abf152bed71e88ad1 /builtin_commandline.c | |
parent | e4a95cb989963c63b1cecd3405cf6d28dabb8cc4 (diff) |
Code cleanup
darcs-hash:20051215135902-ac50b-e9fc18bca34459ddb56e970a16c05e9b3cc54848.gz
Diffstat (limited to 'builtin_commandline.c')
-rw-r--r-- | builtin_commandline.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/builtin_commandline.c b/builtin_commandline.c index 6996adf1..e000eeb6 100644 --- a/builtin_commandline.c +++ b/builtin_commandline.c @@ -28,10 +28,10 @@ Functions used for implementing the commandline builtin. */ enum { - STRING_MODE=1, // Operate on entire buffer - JOB_MODE, // Operate on job under cursor - PROCESS_MODE, // Operate on process under cursor - TOKEN_MODE // Operate on token under cursor + STRING_MODE=1, /**< Operate on entire buffer */ + JOB_MODE, /**< Operate on job under cursor */ + PROCESS_MODE, /**< Operate on process under cursor */ + TOKEN_MODE /**< Operate on token under cursor */ } ; @@ -40,9 +40,9 @@ enum */ enum { - REPLACE_MODE=1, // Replace current text - INSERT_MODE, // Insert at cursor position - APPEND_MODE // Insert at end of current token/command/buffer + REPLACE_MODE=1, /**< Replace current text */ + INSERT_MODE, /**< Insert at cursor position */ + APPEND_MODE /**< Insert at end of current token/command/buffer */ } ; @@ -66,10 +66,6 @@ static void replace_part( wchar_t *begin, sb_init( &out ); -// wchar_t *tmp = wcsndup( begin, end-begin ); - -// fwprintf( stderr, L"Commandline '%ls', current command '%ls'\n", reader_get_buffer(), tmp ); - sb_append_substring( &out, buff, begin-buff ); switch( append_mode) |