зеркало из https://github.com/mozilla/pjs.git
gave a pref a better name and a more traditional set of values.
This commit is contained in:
Родитель
5de032a7ae
Коммит
0a99569fca
|
@ -121,11 +121,12 @@ nsHTMLEditRules::Init(nsHTMLEditor *aEditor, PRUint32 aFlags)
|
|||
if (NS_FAILED(res)) return res;
|
||||
|
||||
char *returnInEmptyLIKillsList = 0;
|
||||
res = prefs->CopyCharPref("editor.liReturnBehavior", &returnInEmptyLIKillsList);
|
||||
res = prefs->CopyCharPref("editor.html.typing.returnInEmptyListItemClosesList",
|
||||
&returnInEmptyLIKillsList);
|
||||
|
||||
if (NS_SUCCEEDED(res) && returnInEmptyLIKillsList)
|
||||
{
|
||||
if (!strncmp(returnInEmptyLIKillsList, "no", 2))
|
||||
if (!strncmp(returnInEmptyLIKillsList, "false", 5))
|
||||
mReturnInEmptyLIKillsList = PR_FALSE;
|
||||
else
|
||||
mReturnInEmptyLIKillsList = PR_TRUE;
|
||||
|
|
|
@ -121,11 +121,12 @@ nsHTMLEditRules::Init(nsHTMLEditor *aEditor, PRUint32 aFlags)
|
|||
if (NS_FAILED(res)) return res;
|
||||
|
||||
char *returnInEmptyLIKillsList = 0;
|
||||
res = prefs->CopyCharPref("editor.liReturnBehavior", &returnInEmptyLIKillsList);
|
||||
res = prefs->CopyCharPref("editor.html.typing.returnInEmptyListItemClosesList",
|
||||
&returnInEmptyLIKillsList);
|
||||
|
||||
if (NS_SUCCEEDED(res) && returnInEmptyLIKillsList)
|
||||
{
|
||||
if (!strncmp(returnInEmptyLIKillsList, "no", 2))
|
||||
if (!strncmp(returnInEmptyLIKillsList, "false", 5))
|
||||
mReturnInEmptyLIKillsList = PR_FALSE;
|
||||
else
|
||||
mReturnInEmptyLIKillsList = PR_TRUE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче