ViewInternal: Fix 'Go to matching bracket' in override mode
ClosedPublic

Authored by loh.tar on Dec 29 2018, 12:21 PM.

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped
loh.tar created this revision.Dec 29 2018, 12:21 PM
Restricted Application added projects: Kate, Frameworks. · View Herald TranscriptDec 29 2018, 12:21 PM
Restricted Application added subscribers: kde-frameworks-devel, kwrite-devel. · View Herald Transcript
loh.tar requested review of this revision.Dec 29 2018, 12:21 PM

I think this change makes sense.

I would like to have a unit test for this. Doing so is simple: Add a function in autotest/src/kateview_test.h/cpp and add one bracket matching call, then check the new cursor position. Then, do the same in overwrite mode.

Nice trick ;-) Can't promise to do it, will see

loh.tar updated this revision to Diff 49530.Jan 15 2019, 2:16 PM

Add autotest

dhaumann accepted this revision.Jan 15 2019, 5:27 PM

Good patch, and works for me.

This revision is now accepted and ready to land.Jan 15 2019, 5:27 PM