diff options
author | 2007-08-21 23:25:23 -0400 | |
---|---|---|
committer | 2007-08-21 23:25:23 -0400 | |
commit | 1ec412529982f5860445023495e6c3d915e14c84 (patch) | |
tree | eca21a6bdc1b65dd9b1aa3d83964970f78f48cf5 /src/find_replace.c | |
parent | 8b4b497a8694a70e154fb0356c05c448f881f9d7 (diff) | |
download | textadept-1ec412529982f5860445023495e6c3d915e14c84.tar.gz textadept-1ec412529982f5860445023495e6c3d915e14c84.zip |
Pruned C++ code, added additional comments.
Modified C++ code structure to be more consistent throughout. Also added
comments for functions that handle key events, indicating which (hard-coded)
keys trigger what actions.
Diffstat (limited to 'src/find_replace.c')
-rw-r--r-- | src/find_replace.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/find_replace.c b/src/find_replace.c index 4d31e178..ebd35de8 100644 --- a/src/find_replace.c +++ b/src/find_replace.c @@ -97,6 +97,9 @@ static int get_flags() { return flags; } +/** Find entry key event. + * Enter - Find next or previous. + */ static bool fe_keypress(GtkWidget *, GdkEventKey *event, gpointer) { // TODO: if incremental, call l_find() if (event->keyval == 0xff0d) { @@ -105,6 +108,9 @@ static bool fe_keypress(GtkWidget *, GdkEventKey *event, gpointer) { } else return false; } +/** Replace entry key event. + * Enter - Find next or previous. + */ static bool re_keypress(GtkWidget *, GdkEventKey *event, gpointer) { if (event->keyval == 0xff0d) { l_find(find_text, get_flags(), true); |