D23225: Allow 0 in line ranges in vim mode.

Jonathan Verner noreply at phabricator.kde.org
Sat Aug 17 20:39:44 BST 2019


verner created this revision.
Herald added projects: Kate, Frameworks.
Herald added subscribers: kde-frameworks-devel, kwrite-devel.
verner requested review of this revision.

REVISION SUMMARY
  Vim numbers lines starting from 1. However, in command ranges such as, e.g., 0,$s/foo/bar/g
  it accepts zero as a line number and treats it as 1. This commit implements the same behaviour
  for kate.

REPOSITORY
  R39 KTextEditor

BRANCH
  fix/vim_mode_accept_0_as_line_index (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D23225

AFFECTED FILES
  autotests/src/vimode/emulatedcommandbar.cpp
  src/vimode/commandrangeexpressionparser.cpp

To: verner
Cc: kwrite-devel, kde-frameworks-devel, LeGast00n, domson, michaelh, ngraham, bruns, demsking, cullmann, sars, dhaumann
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190817/c9225778/attachment.html>


More information about the Kde-frameworks-devel mailing list