]> git.lyx.org Git - features.git/commit
refactor: keep meaning of a variable consistent
authorScott Kostyshak <skostysh@lyx.org>
Wed, 2 Jun 2021 03:59:40 +0000 (23:59 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Fri, 16 Jul 2021 19:50:30 +0000 (15:50 -0400)
commitabc65d4700c688b2261a2a8ca11df0f76fcf380f
treee899ac08149f5a7e2b4583a0b6694d5ce31dfdb6
parentc93c94fd22b30841e3d36fc8fc583a70091cc72f
refactor: keep meaning of a variable consistent

We now use a new variable, "wrap", to track if a wrap should be
done, which is true either if "auto_wrap" is true or if the user
chooses to wrap in the dialog.

This preserves the meaning of the "auto_wrap" variable and also
removes the confusion of why the previous code of

  if (!auto_wrap) {
    ...
  }
  if (auto_wrap) {

did not use an "else" instead of the second "if".

No change in functionality.
src/lyxfind.cpp
src/lyxfind.h