mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
Two command-sequence fixes
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4594 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
55aa66a6e0
commit
32e55ec7c8
@ -1,3 +1,9 @@
|
||||
2002-07-10 John Levon <moz@compsoc.man.ac.uk>
|
||||
|
||||
* LyXAction.C: allow command-sequence with NoBuffer
|
||||
|
||||
* lyxfunc.C: don't insist on trailing ';' for command-sequence
|
||||
|
||||
2002-07-10 Angus Leeming <leeming@lyx.org>
|
||||
|
||||
* lyxrc.[Ch]: preview_scale_factor should be a float not an int.
|
||||
|
@ -162,7 +162,7 @@ void LyXAction::init()
|
||||
{ LFUN_EXEC_COMMAND, "command-execute", "", NoBuffer },
|
||||
{ LFUN_PREFIX, "command-prefix",
|
||||
N_("Execute command"), NoBuffer },
|
||||
{ LFUN_SEQUENCE, "command-sequence", "", Noop },
|
||||
{ LFUN_SEQUENCE, "command-sequence", "", NoBuffer },
|
||||
{ LFUN_COPY, "copy", N_("Copy"), ReadOnly },
|
||||
{ LFUN_CUT, "cut", N_("Cut"), Noop },
|
||||
{ LFUN_DATE_INSERT, "date-insert", "", Noop },
|
||||
|
@ -1554,7 +1554,7 @@ string const LyXFunc::dispatch(kb_action action, string argument)
|
||||
case LFUN_SEQUENCE:
|
||||
{
|
||||
// argument contains ';'-terminated commands
|
||||
while (argument.find(';') != string::npos) {
|
||||
while (!argument.empty()) {
|
||||
string first;
|
||||
argument = split(argument, first, ';');
|
||||
verboseDispatch(first, false);
|
||||
|
Loading…
Reference in New Issue
Block a user