From 70fa973f4704b256707147321b27f92c14e57777 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sun, 25 Oct 2015 07:40:34 +0300 Subject: [PATCH] Fix typos. Signed-off-by: Andrew Borodin --- lib/widget/history.c | 2 +- lib/widget/history.h | 2 +- lib/widget/wtools.c | 2 +- lib/widget/wtools.h | 2 +- src/args.c | 2 +- src/viewer/mcviewer.c | 2 +- src/viewer/search.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/widget/history.c b/lib/widget/history.c index 8b1e72483..ea8a8f932 100644 --- a/lib/widget/history.c +++ b/lib/widget/history.c @@ -162,7 +162,7 @@ history_get (const char *input_name) /* --------------------------------------------------------------------------------------------- */ /** - * Load history form the mc_config + * Load history from the mc_config */ GList * history_load (struct mc_config_t * cfg, const char *name) diff --git a/lib/widget/history.h b/lib/widget/history.h index fca4d6968..1f2d8ca69 100644 --- a/lib/widget/history.h +++ b/lib/widget/history.h @@ -23,7 +23,7 @@ extern int num_history_items_recorded; /* read history to the mc_config, but don't save config to file */ GList *history_get (const char *input_name); -/* load history form the mc_config */ +/* load history from the mc_config */ GList *history_load (struct mc_config_t *cfg, const char *name); /* save history to the mc_config, but don't save config to file */ void history_save (struct mc_config_t *cfg, const char *name, GList * h); diff --git a/lib/widget/wtools.c b/lib/widget/wtools.c index 7e9d57549..dd602ae5b 100644 --- a/lib/widget/wtools.c +++ b/lib/widget/wtools.c @@ -597,7 +597,7 @@ status_msg_init (status_msg_t * sm, const char *title, double delay, status_msg_ if (mc_time_elapsed (&start, sm->delay)) { - /* We will manage the dialog without any help, that's why we have to call init_dlg */ + /* We will manage the dialog without any help, that's why we have to call dlg_init */ dlg_init (sm->dlg); } } diff --git a/lib/widget/wtools.h b/lib/widget/wtools.h index fb17651d9..57248669e 100644 --- a/lib/widget/wtools.h +++ b/lib/widget/wtools.h @@ -48,7 +48,7 @@ struct status_msg_t status_msg_cb init; /* callback to init derived classes */ status_msg_update_cb update; /* callback to update dlg */ - status_msg_cb deinit; /* callback to deinit deribed clesses */ + status_msg_cb deinit; /* callback to deinit derived classes */ }; /* Simple status message with label and 'Abort' button */ diff --git a/src/args.c b/src/args.c index c9c45e007..7efe461de 100644 --- a/src/args.c +++ b/src/args.c @@ -54,7 +54,7 @@ gboolean mc_args__nomouse = FALSE; /* Force colors, only used by Slang */ gboolean mc_args__force_colors = FALSE; -/* Don't load keymap form file and use default one */ +/* Don't load keymap from file and use default one */ gboolean mc_args__nokeymap = FALSE; char *mc_args__last_wd_file = NULL; diff --git a/src/viewer/mcviewer.c b/src/viewer/mcviewer.c index 596709c95..46e877244 100644 --- a/src/viewer/mcviewer.c +++ b/src/viewer/mcviewer.c @@ -297,7 +297,7 @@ mcview_load (WView * view, const char *command, const char *file, int start_line } else { - /* try extract path form filename */ + /* try extract path from filename */ const char *fname; char *dir; diff --git a/src/viewer/search.c b/src/viewer/search.c index c1dc2691d..10c4e1369 100644 --- a/src/viewer/search.c +++ b/src/viewer/search.c @@ -370,7 +370,7 @@ mcview_do_search (WView * view, off_t want_search_start) if (!isFound && view->search->error_str != NULL) { - /* continue search form beginning */ + /* continue search from beginning */ off_t search_end; search_end = orig_search_start;