Changeset 216c734 for commands.c
- Timestamp:
- Oct 24, 2006, 12:40:02 PM (18 years ago)
- Branches:
- master, barnowl_perlaim, debian, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
- Children:
- 0138478
- Parents:
- 4211f50b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
commands.c
r4211f50b r216c734 703 703 "returns the value of a variable", 704 704 "getvar <varname>", ""), 705 706 OWLCMD_ARGS("getstyle", owl_command_getstyle, OWL_CTX_INTERACTIVE, 707 "returns the name of the style for the current view", 708 "", ""), 705 709 706 710 OWLCMD_ARGS("search", owl_command_search, OWL_CTX_INTERACTIVE, … … 2395 2399 } 2396 2400 2401 char *owl_command_getstyle(int argc, char **argv, char *buff) 2402 { 2403 char *stylename; 2404 if (argc != 1) { 2405 owl_function_makemsg("Wrong number of arguments for %s", argv[0]); 2406 return NULL; 2407 } 2408 stylename = owl_view_get_style_name(owl_global_get_current_view(&g)); 2409 if (stylename) stylename = owl_strdup(stylename); 2410 return stylename; 2411 } 2412 2397 2413 /*********************************************************************/ 2398 2414 /************************** EDIT SPECIFIC ****************************/
Note: See TracChangeset
for help on using the changeset viewer.